
深度优先搜索
景行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 · 308 阅读 · 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 · 163 阅读 · 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 · 137 阅读 · 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 · 125 阅读 · 0 评论