Robbery 101
CodeChefOpen on judge ↗
You are the most notorious criminal in **Gwalior**. You've decided that you're going to rob hard working employees of **CF**, a famous Tech company in the city. There are **N** people working in **CF**. The employees working here are conveniently numbered from **1** to **N**. Furthermore, each employee except **Praveen**, the **CEO**, has exactly **1** manager that he/she has to report to regular
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