← All problemsSign in

vaccancy in covid centres

There are M covid centres denoted by IDs 0 to M-1 located on a circular path ( centre 1 is right to centre 0, centre 2 is right to centre 1, .... centre 0 is right to centre M-1). Each centre can treat only one patient at a time. There ar N patients and two arrays, arrival and treatment of length N is given. Arrival denotes that ith patient arrives to (i%m)th centre o

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