This post shows a code example of implementing nQueen algorithm which follows backtracking principle. Unlike other examples available in the internet, this code never relies on the general function stack to do the backtrack. It just does whatever the back