Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34adee2

Browse files
Revert cur.end to cur.word
cur.end is not a property of class TrieNode. The correct property is cur.word
1 parent98b6666 commit34adee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎python/211-Design-Add-and-Search-Words-Data-Structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ def dfs(j, root):
3131
ifcnotincur.children:
3232
returnFalse
3333
cur=cur.children[c]
34-
returncur.end
34+
returncur.word
3535

3636
returndfs(0,self.root)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp