Routing - Simplified
CodeChefOpen on judge ↗
Swiggy keeps evolving by improving its routing techniques. Help Ross (only delivery boy in this hypothetical situation) to deliver all the orders in minimum time. Restaurants and customers are represented by nodes in the graph given. There are N nodes and M streets in one of our delivery zones. You are given the two nodes connected and the distance for each of the street. There are O orders whi
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.
Sign in to chat with the tutor and save your progress.
Sign in to start