← All problemsSign in

Ant Scheduling

Two-files of ants are coming one by one, but only a single lane is available. The traffic control department wants to order incoming ants at both the parts of the road so that the last ant to leave is as early as possible. Each incoming ant is specified by 3 values, the lane it is going in ('L'/'R'), the arrival time (a) of the ant and the total time it takes to cross the road. Ants canno

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