← All problemsSign in

Canteen

IIIT-Delhi’s canteen has five workstations, one for Chinese, one for Mexican, one for Italian, one for South Indian and one for Punjabi food. Each workstation can work only on two dishes at a particular time and each station takes exactly 5 units of time to prepare one dish. You have a list of people who come in at different times and order food at the canteen according to the cuisine. At a part

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