AirbnbSoftware Engineer · OnsiteCodemia practiceFewest Slides to Solve a Two by Three Tile Puzzle
A 2x3 board holds tiles 1 through 5 and one blank (0); a move slides a tile adjacent to the blank into it. Return the minimum number of moves to reach the solved board [[1,2,3],[4,5,0]], or -1 if it is unreachable.