LeetCode 52. N-Queens II(N皇后)
原题网址:https://leetcode.com/problems/n-queens-ii/
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
方法一:深度优先搜索,使用一
原创
2016-05-21 06:27:12 ·
965 阅读 ·
0 评论