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 b164832 commit 9052e50Copy full SHA for 9052e50
design-add-and-search-words-data-structure/yhkee0404.rs
@@ -37,7 +37,7 @@ impl WordDictionary {
37
return Self::search_from_index(&self.trie, &word)
38
}
39
40
- // T(n) = S(n) = ((2^2)n) = O(n)
+ // T(n) = S(n) = ((26^2)n) = O(n)
41
fn search_from_index(trie: &Trie, word: &str) -> bool {
42
return match word.chars()
43
.next() {
0 commit comments