diff --git a/src/main/python/g0201_0300/s0212_word_search_ii/Solution0212.py b/src/main/python/g0201_0300/s0212_word_search_ii/Solution0212.py index 196e641..5b8ba2c 100644 --- a/src/main/python/g0201_0300/s0212_word_search_ii/Solution0212.py +++ b/src/main/python/g0201_0300/s0212_word_search_ii/Solution0212.py @@ -6,12 +6,12 @@ class Solution: def findWords(self, board: List[List[str]], words: List[str]) -> List[str]: alphabets = [chr(ord("a") + i) for i in range(26)] + ["end"] - trie = {i:None for i in alphabets} + trie = {i:None for i in alphabets} #NOSONAR for word in words: root = trie for letter in word: if not root[letter]: - root[letter] = {i:None for i in alphabets} + root[letter] = {i:None for i in alphabets} #NOSONAR root = root[letter] root["end"] = True