We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25302d5 commit 78b855cCopy full SHA for 78b855c
1 file changed
data_structures/trie/trie.py
@@ -532,15 +532,9 @@ def _find_words(node: Node, current_word: str):
532
trie.delete("apple")
533
print(f" After deletion - searching 'apple': {trie.search('apple')}")
534
app_exists = trie.search("application")
535
- print(
536
- f" Checking if 'application' still exists: {app_exists} "
537
- "(should be True)"
538
- )
+ print(f" Checking if 'application' still exists: {app_exists} (should be True)")
539
app_prefix = trie.starts_with("app")
540
541
- f" Checking if prefix 'app' still matches: {app_prefix} "
542
543
+ print(f" Checking if prefix 'app' still matches: {app_prefix} (should be True)")
544
545
# Test 10: Verify final state
546
print("\n[TEST 10] Final state - All remaining words")
0 commit comments