I am just trying to solve a question on http://www.interviewstreet.com/challenges it about solving n queen problem for atmost n=999…and display one of the valid solutions… for example for 4-queen problem solution would be 2 4 1 3…
i tried solving it using various approaches but could not go further than n=21…
http://www.cl.cam.ac.uk/~mr10/backtrk.pdf i tried this approach too but it is taking sufficiently large amount of time…
can any one help me with this or atleast give me any idea?