Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
这道题和第51题基本没有太大区别,题目难度为Hard。
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
这道题和第51题基本没有太大区别,题目难度为Hard。