Ready,Steady Go
CodeChefOpen on judge ↗
Goa is known for it's narrow roads. A racing club has orgainsed a car race in Goa on a track. One of these narraw road is a part of this track. The road is so narrow , that it is impossible for a car to overtake another car on this road. Therefore, a car had to lower down its speed if there is slower car in front of it. You are given the maximum speed of N car in the order they entered the narrow
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