Solution to N-Queens by LeetCode

4 Jun

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

Question Name: N-Queens

2 Replies to “Solution to N-Queens by LeetCode

  1. Will your bitwise approach make the algorithm faster in terms of time complexity?
    I think my algorithm runs O(N!), as same as permutation and it’s recursive as well…

Leave a Reply

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

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!