Prof Kamakoti and IPL queues
CodeChefOpen on judge ↗
To buy the tickets for the opening IPL match between CSK and MI, fans are waiting in multiple queues. The police officers present at the scene want to make all the queues into one single queue which would lead to the fans getting agitated. The police know that they can’t save the situation alone so they ask Prof. Kamakoti for help. Prof Kamakoti goes about modelling the situation as follows… Let
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