Minimum Moves
CodeChefOpen on judge ↗
Background Bob is a student of NIT Jalandhar.Like all other students he likes to solve puzzles.In one such popular puzzle there is board in which there are m*m boxes each assigned an a non zero integer except one box which is marked as 0 and is treated as vacant .Only the vertical and horizontal neighbors of vacant box can move towards it leaving their place as vacant.To solve this puzzle bob has
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start