N-Queens II

Solution Code

Time Complexity

O(N!)

Space Complexity

O(N)