Skip to content

Commit 31c2216

Browse files
authored
Update 820.short-encoding-of-words.md
1 parent a4a368e commit 31c2216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

problems/820.short-encoding-of-words.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class Trie:
101101
curr = self.Trie
102102
for w in word:
103103
curr = curr[w]
104-
# we meet '#'
105-
return len(curr) == 1
104+
# len(curr) == 1 means we meet '#'
105+
return len(curr) == 1
106106
class Solution:
107107
def minimumLengthEncoding(self, words: List[str]) -> int:
108108
trie = Trie()

0 commit comments

Comments
 (0)