Update README.md

This commit is contained in:
marina 2023-08-03 16:32:11 -07:00 committed by GitHub
parent fb6507ce38
commit faf6e7321e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
```