(self, word: str)
| 27 | Otherwise, returns false. |
| 28 | """ |
| 29 | def search(self, word: str) -> bool: |
| 30 | curr = self.root |
| 31 | for c in word: |
| 32 | if c not in curr.children: |
| 33 | return False |
| 34 | curr = curr.children[c] |
| 35 | return curr.is_end |
| 36 | |
| 37 | """ |
| 38 | Returns true if there is a previously inserted string word that has the prefix prefix. |
no outgoing calls
no test coverage detected