RESCUE OPERATION
CodeChefOpen on judge ↗
After adding the additional paths, the rescue team has reached the island which has been attacked by terrorists. The island is represented as a grid of n rows and m columns. The rescue team is initially at (X1, Y1) and the terrorists are hiding at (X2, Y2). You have to help the rescue team reach the terrorists in miminum number cost. However, there is a condition that the rescue team can take at m
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