Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ startsWith
Method
startsWith
Python/Trie.py:28–34 ·
view source on GitHub ↗
(self, prefix)
Source
from the content-addressed store, hash-verified
26
return
node.word
27
28
def
startsWith(self, prefix):
29
node=self.root
30
for
i in prefix:
31
if
i not in node.children:
32
return
False
33
node=node.children[i]
34
return
True
Callers
2
numOfStrings
Method · 0.45
interpret
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected