mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
Update README.md
This commit is contained in:
parent
fb6507ce38
commit
faf6e7321e
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Trie:
|
|||
def search(self, word: str) -> bool:
|
||||
return self.match(word)
|
||||
|
||||
def startsWith(self, prefix: str) -> bool:
|
||||
def starts_with(self, prefix: str) -> bool:
|
||||
return self.match(prefix, True)
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue