Here is my solution:
class Solution(object): def findWords(self, board, words): WORD_KEY = \'$\' trie = {} for word in words: