N-Queens · Compound Engineer

N-Queens

Place n queens on an n by n board so none attack each other. Why one queen per row and three small sets let the search drop a bad board the moment it appears.

DSAProHardStep-through playerBy Aayush OstwalSolve on LeetCode ↗
Spotted a mistake in this lesson?Report an issue →