Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ startsWith
Method
startsWith
java/0208-implement-trie-prefix-tree.java:38–42 ·
view source on GitHub ↗
(String prefix)
Source
from the content-addressed store, hash-verified
36
}
37
38
public
boolean startsWith(String prefix) {
39
Node res = getLast(prefix);
40
if
(res == null)
return
false;
41
return
true;
42
}
43
44
class
Node {
45
Callers
1
wordBreak
Method · 0.45
Calls
1
getLast
Method · 0.95
Tested by
no test coverage detected