![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DFS
凶猛小白兔�
这个作者很懒,什么都没留下…
展开
-
Leetcode: 39. Combination Sum
Question Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidateswhere the candidate numbers sums to target. The same...原创 2019-05-23 01:36:34 · 93 阅读 · 0 评论 -
Leetcode: 98. Validate Binary Search Tree
Question: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node’s k...原创 2019-05-30 09:24:30 · 77 阅读 · 0 评论 -
Leetcode 17: 17. Letter Combinations of a Phone Number
Question: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Example: Input: “23” Output: [“ad”, “ae”, “af”, “bd”, “be”, “bf...原创 2019-05-29 01:55:24 · 94 阅读 · 0 评论 -
Leetcode: 695. Max Area of Island && Leetcode 200: Num of Islands
Question: Given a non-empty 2D array gridof 0’s and 1’s, an island is a group of 1’s (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid a...原创 2019-06-14 13:30:37 · 91 阅读 · 0 评论