Search
⌘K

Leetcode 3189. Minimum Moves to Get a Peaceful Board

Given an n×n board with some occupied cells, compute the minimum number of single-piece moves needed to rearrange pieces so the board becomes "peaceful" (no two pieces conflict, e.g., attack or are adjacent). The core challenge is modeling conflicts between positions and finding an optimal reassignment of pieces to target cells — typically solved by greedy placement, bipartite matching or flow on a conflict graph.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.