K-NQueens validation fails when SOLUTION_LIMIT is greater than actual number of solutions
shamsimam opened this issue · 0 comments
shamsimam commented
A possible fix is to limit the value of SOLUTION_LIMIT
to the actual number of solutions
SOLUTION_LIMIT = Math.min(SOLUTION_LIMIT, SOLUTIONS[SIZE - 1]);