Sliding Puzzle
Given a 2 x 3 sliding-puzzle board, where 0 represents the empty cell, one move consists of swapping the empty cell with one of its up, down, left, or right neighbors.
Return the minimum number o...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
