15-Puzzle Minimum Moves (BFS)

Asked at Microsoft · Coding Questions · Difficulty: Medium

A 4×4 board contains tiles `1..15` and one blank (`0`). Each move slides one of the blank's 4-neighbor tiles into the blank. The solved state has `1..15` in row-major order with the blank at position (3,3).

Loading the problem…