Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
请参考51题的思路。
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
请参考51题的思路。