Solution to N-Queens II by LeetCode

9 Jun

Question: https://oj.leetcode.com/problems/n-queens-ii/

Question Name: N-Queens II

Same method as that in N-Queens problem. But we could save some time and space by not recording the chessboard.

Leave a Reply

Your email address will not be published. Required fields are marked *