N-Queens 2 - Count number of distinct solutions

hardSolve on LeetCode
Last edited: August 2, 2025