DeoriaTheGreatCity
CodeChefOpen on judge ↗
Problem Description KOOL is back. Now KOOL's girlfriend KOOLER left him because of some runtime issues. To be precise the issue with KOOL is the following : - Being human he can remember only few number of friends( Say it is N). - He forgets the friend he interacted least recent. - He makes new friend and forgets the old. You have to mimic the KOOL's brain. You have to answer the queries. T
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