Chef and Food Delivery
CodeChefOpen on judge ↗
This Bitotsav, chef has decided to open a food delivery service for the students of BIT Mesra. The map of BIT can be repersented as a weighted tree structure, where the nodes represent the hostels and the edges are the path between them which have some given weight. The chef is now in a dilemma as to choose which hostel as his central kitchen. The choice for a particular hostel is based on the re
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