
深度优先搜索
景行cmy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode 546 Remove Boxes
Given several boxes with different colors represented by different positive numbers. You may experience several rounds to remove boxes until there is no box left. Each time you can choose some contin...原创 2019-07-11 11:21:03 · 322 阅读 · 0 评论 -
leetcode 282. Expression Add Operators
Given a string that contains only digits0-9and a target value, return all possibilities to addbinaryoperators (not unary)+,-, or*between the digits so they evaluate to the target value. Exampl...原创 2019-07-24 15:11:02 · 177 阅读 · 0 评论 -
leetcode 980. Unique Paths III
On a 2-dimensionalgrid, there are 4 types of squares: 1represents the starting square. There is exactly one starting square. 2represents the ending square. There is exactly one ending square. ...原创 2019-09-02 16:41:37 · 145 阅读 · 0 评论 -
leetcode 996. Number of Squareful Arrays
Given an arrayAof non-negative integers, the array issquarefulif for every pair of adjacent elements, their sum is a perfect square. Return the number of permutations of A that are squareful. Tw...原创 2019-09-02 18:08:36 · 134 阅读 · 0 评论