← All problemsSign in

Vishal The Theif

Vishal is a thief inspired from dhoom 2 movie of hritik roshan. He decides to rob a museum which is N storeyed and Nth(the topmost floor) has a Diamond. Now he decides to climb the museum from outside. On every floor he gets a shoe with some integer on it. So N floors will have N shoes with some integral value on it. The value on the shoe denotes the maximum jump which he can make by wearing them(

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