← All problemsSign in

Dhruva and the Video Game

# Dhruva and the Video Game Dhruva is very much addicted to a video game consisting of L levels and N obstacles. The game allows you to cross a level only after you have passed all the obstacles present in that level. Obstacles are numbered from 0 to N−1. After you cross any level, it gets unlocked for playing whenever you want for fun. Example - To cross level 1, you might need to pass obstacl

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