Skip to content

Conversation

@ups216
Copy link
Contributor

@ups216 ups216 commented May 6, 2025

This pull request enhances the functionality of the Trie class by adding a search method to check for the existence of words and implementing logic to retrieve all words with a given prefix. These changes improve the usability and feature set of the Trie implementation.

New functionality:

  • Added a search(String word) method to check if a word exists in the Trie. This method traverses the Trie and returns true if the word is found and marked as an end of a word.

  • Implemented the getAllWordsWithPrefix(TrieNode node, String prefix) method to retrieve all words in the Trie that start with a given prefix. This method recursively collects words by traversing the children of the specified node.

@gru-agent
Copy link

gru-agent bot commented May 6, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail d65fa26 ✅ Finished

Files

File Pull Request
src/main/java/org/example/leansoftx/Trie.java ❌ Failure (Failed to solve the problem.)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@gru-agent
Copy link

gru-agent bot commented May 6, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail d65fa26 ✅ Finished

Files

File Pull Request
src/main/java/org/example/leansoftx/Trie.java ❌ Failure (I failed to write the unit tests for the file.)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@gru-agent
Copy link

gru-agent bot commented May 6, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail d65fa26 ✅ Finished

Files

File Pull Request
src/main/java/org/example/leansoftx/Trie.java ❌ Failure (I failed to write the unit tests for the file.)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@gru-agent
Copy link

gru-agent bot commented May 6, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail aa945ac ✅ Finished

Files

File Pull Request
src/main/java/org/example/leansoftx/Trie.java ❌ Failure (I failed to write the unit tests for the file.)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

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