Skip to content

Store search result of HasWord() and use it in GetWordValue() to speed up#4

Open
Matrixchung wants to merge 2 commits intotgolla:masterfrom
Matrixchung:master
Open

Store search result of HasWord() and use it in GetWordValue() to speed up#4
Matrixchung wants to merge 2 commits intotgolla:masterfrom
Matrixchung:master

Conversation

@Matrixchung
Copy link

This helps to prevent an extra while() search loop.
Also fixed: HasWord(char letter) should return false when letter is not a valid word (IsWord(letter) == false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant