Video Game
CodeChefOpen on judge ↗
You are the well known video game player of your generation. You are deep diving into a newly launched video game. The game has $n$ levels each level is labelled by a number from $0$ to $n-1$. In the game some levels. In the game some of level need some prerequisites i.e two integer $x$, $y$ which means before playing the level $x$ you need to complete level $y$. For example the prereqsites {1,2
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