← Questions

Sliding puzzle: fewest moves to solve the 15-puzzle

0
MicrosoftCodingLast asked Feb 2026

Given a 4x4 sliding puzzle with one blank, return the fewest moves to reach the solved board, or report that it cannot be solved. Discuss the solvability check, BFS versus A* or IDA* with a Manhattan-distance heuristic, and how you encode states. Only the title of this report was public.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding