← All problemsSign in

END IN ARRAY

You need to start from 0 th index in an array you need to reach end of array, if array element is -1 you can not go there,you can jump 1 setp's can jump 2 setp's can jump 3 steps , can jump 4 or can jump 5 steps from any index if that value exist and it is not -1 then you can jump there, if you can reach end print yes else print no ###Input: - number of test cases t - size of array n - arr

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