← All problemsSign in

Harshit Goes To Disneyland

Problem Description Harshit entered the Retro Arcade in DisneyLand, where he found a vintage Snake Frenzy Game. The arena is in the form of an NXM matrix and is covered with Bushes(#) and Land(.). The Snake(S) can walk over land only. In one unit time, if the snake is at index (i, j) it can move to index (i-1, j), (i+1, j), (i, j-1) or (i, j+1) He wants to calculate the maximum time it would ta

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start