Bus Ho Gaya
CodeChefOpen on judge ↗
Vatsal and Dipen met at Vikrant Circle after a long time. Vatsal stays at Chembur and Dipen at Kurla. Both of them commute by bus. They reached the bus stop, and got to know that both their buses had left just then (at the same time) for the respective destinations. Neither wanted to leave the other alone at the bus stop. They came to know that a bus arrives every x min for Chembur and every y min
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