← All problemsSign in

Cooking

It’s Chef’s first day as the Head Chef. He has n dishes in mind for his menu. Each dish weighs W[i] Kg. There are totally n burners in the kitchen and each can cook 1kg of food in 1 second. The chef now cooks each dish in different burners such that no two dishes are cooked on the same burner, and dishes cannot be moved once it is assigned to a burner. Now the chef wants to know what is the minimu

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