← 返回 amazon 的题目列表Word Search II Solution Explanation
类型:online_judge
Design a function to return all words from a given word dictionary that can be found on a given board of characters. You can use either DFS or Trie to optimize the search.
Example
Input
board = [['a', 'b'], ['c', 'd']]; words = ['ab', 'cd', 'abcd']