Minimum Cost
CodeChefOpen on judge ↗
Holi Bike Race! There are three roads numbered 1 , 2 and 3. All the bikers have to be on a single road so that they can start the race. Currently some bikers are on road1, some on road2 , and some on road3. The cost of travelling from one road to another road is 1 Unit. You need to determine the minimum cost to start the race! i.e to get all the bikers in any one of the road. NOTE: All th
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