• + 0 comments

    I struggled with Time Limit Exceeded for n == 14 and 15 and tried to use memoization and other tricks to solve it with no luck.

    Then I realized that all of the solutions on this page are building "one queen per column" (or one queen per row) into the placement function. This solves a lot of performance issues.