← All problemsSign in

LOYALTY TEST

$Bhosale's$ faith on $DCP$ $Parulkar$ is decreasing day by day. He feels that $Parulkar$ is betraying him. So he decides to check his loyalty. He gives him one problem and if $Parulkar$ will be able to solve it then and only then he can prove his loyalty. But as we know that $Parulkar$ is $DCP$ and he already has lot of work . So you are the only one who can help $Parulkar$ to prove his loyalty.

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