Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
- Minimum Difference Between Largest and Smallest Value in Three Moves
Coding
- Minimum Flips in Binary Tree to Get Result
Coding
- Minimum Knight Moves
Coding · A* Search · Bidirectional Search · Breadth-First Search
- Minimum Moves to Capture The Queen
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3189. Minimum Moves to Get a Peaceful Board
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source