DFS
凶猛小白兔�
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode: 39. Combination Sum
QuestionGiven 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 · 167 阅读 · 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 · 132 阅读 · 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 · 136 阅读 · 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 · 135 阅读 · 0 评论
分享