
回溯
景行cmy
这个作者很懒,什么都没留下…
展开
-
leetcode 51. N-Queens
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinct solutions to then-queens puzzle.Each...原创 2019-07-15 09:25:42 · 103 阅读 · 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 1088. Confusing Number II
We can rotate digits by 180 degrees to form new digits. When 0, 1, 6, 8, 9 are rotated 180 degrees, they become 0, 1, 9, 8, 6 respectively. When 2, 3, 4, 5 and 7 are rotated 180 degrees, they become i...原创 2019-10-10 14:43:30 · 9908 阅读 · 0 评论