HF RL Explorer

N-Queens Puzzle: C++ Performance Optimization

N-Queens Puzzle: C++ Performance Optimization: a task in Terminal-Lego-15k (Harbor dataset). You are given a C++ implementation of the N-Queens puzzle solver that has significant performance issues. The N-Queens puzzle asks: how can N queens be placed on an N×N chessboard so that no two queens…

The task

You are given a C++ implementation of the N-Queens puzzle solver that has significant performance issues. The N-Queens puzzle asks: how can N queens be placed on an N×N chessboard so that no two queens threaten each other?

Part of PrimeIntellect/Terminal-Lego-15k.