abrarulhassan-786 / n-queen-problem Goto Github PK
View Code? Open in Web Editor NEWThe solution is [3,1,2,4]. The first queen should be placed in the 1st row 3rd column, the second queen should be placed in 2nd row 1st column, the third queen should be placed in 3rd row 2nd column and finally, the 4rth queen should be placed in 4rth row 4rth column.