Birthday Party!
CodeChefOpen on judge ↗
Sejal wants to have a get-together with her friends, as she had had last year. She has n friends and each of them came to her house and stayed for a specific range of days of the year from si(start date) to ei(end date), the previous year. Last year, all the people who met each other became friends and had exchanged their contact details. Person A met Person B, if and only if Person A's start date
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