← All problemsSign in

KHATRO KE KHILADI

You might hear about the famous game where $N$ persons are standing in a $Circle$ and a person can kill the next alive person to him and passes the sword to the next one. One day Joffrey has arranged a similar game called $Khatro$ $ke$ $Khiladi$ but he arranged $N$ persons in a $Single$ $row$. Each has assigned an id, numbered from $1$ to $N$. Initially, a person with id 1 has a sword. The person

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