← All problemsSign in

spread of coronavirus

The chef has received one problem but he is a bit busy in cooking so he needs you to solve it. There are N number of patients standing in a queue to withdraw money from atm. There are fewer masks available in our area. we cant provide a mask to everyone in the queue. if a person is not wearing a mask there is a possibility of transferring corona-virus to the person in front of him and behind

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