It is not described properly at FastTrain
I guess that the case is not described properly.
assert.equal(fastTrain([[5, 5], [4, 2]]), 6);
In the image the trains crosses the first station on the speed of 3 and continue moving on. The speed is satisfied for the first section but it is not appropriate for the second section. I guess the description of the second case is not finished.
Created: June 23, 2019, 12:49 a.m.
Updated: June 23, 2019, 12:49 a.m.
0