LeeCode_Recursion
Haskei
这个作者很懒,什么都没留下…
展开
-
212. Word Search II 字典树(Trie)
212.Word Search II Hard Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighbo.原创 2020-06-04 12:06:13 · 180 阅读 · 0 评论 -
79. Word Search (DFS)
79.Word Search Medium Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cel.原创 2020-06-03 10:05:24 · 155 阅读 · 0 评论 -
22. Generate Parentheses (Python)
22.Generate Parentheses Medium Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, givenn= 3, a solution set is: [ "((()))", "(()())", "(())()", "()(())", "()()()" ] 笔记...原创 2020-06-01 11:43:41 · 361 阅读 · 1 评论 -
17. Letter Combinations of a Phone Number (Python) dfs(递归 recursion) + 迭代(iterative)
17.Letter Combinations of a Phone Number Medium Given a string containing digits from2-9inclusive, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given be...原创 2020-06-01 00:27:56 · 204 阅读 · 0 评论