Skip to content

Fix Trie implementation#4668

Merged
pivovarit merged 3 commits intomasterfrom
trie-fix
Jul 9, 2018
Merged

Fix Trie implementation#4668
pivovarit merged 3 commits intomasterfrom
trie-fix

Conversation

@pivovarit
Copy link
Copy Markdown
Contributor

No description provided.

return false;
}
boolean shouldDeleteCurrentNode = delete(node, word, index + 1);
boolean shouldDeleteCurrentNode = delete(node, word, index + 1) && !node.isEndOfWord();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fatosmorina ping for visibility

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pivovarit Thanks :)

@pivovarit pivovarit merged commit 692eafa into master Jul 9, 2018
@pivovarit pivovarit deleted the trie-fix branch July 9, 2018 14:27
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.

2 participants