Lost Children
CodeChefOpen on judge ↗
During a Fair Parents lost their child in the Crowd you are appointed as a Security Guard with a duty to find the particular child. You gather a group of $N$ lost children in a Queue and try to find the child with id $K$ given by his/her Parents. If the child is Found Inform the Parents abt the Position of the child in queue else Inform **Not Found**. Help $T$ such Parents to find their children.
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