2850. Minimum Moves to Spread Stones Over Grid
2850. Minimum Moves to Spread Stones Over Grid
Description
You are given a 0-indexed 2D integer matrix grid
of size 3 * 3
, representing the number of stones in each cell. The grid contains exactly 9
stones, and there can be multiple stones in a single cell.