← All problemsSign in

Thiruttu pasanga 2

Sujatha, after becoming the CEO of a company, decided to grant some of his books to his company’s employees for free! On one fine day, he asked all his employees to form a line and he started distributing books. Sujatha will note down the ID of the employee, when he gives the book. All his employees are die- hard fans of Sujatha, hence they started cheating by collecting more than one book. Y

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