Accumulated time is always floored at each stop instead of the displayed time, which does not make sense: many trips of, say, 103km and 6000km/h will have all the 0.99 minute trip time rounded away, results in hours of discrepancy from when the train will actually arrive.
Scala translation
Not the case in JS && Python
Scala translation
This comment is hidden because it contains spoiler information about the solution
Java Translation
This comment is hidden because it contains spoiler information about the solution
D translation
Random tests can be affected by user code modifying the input.
Accumulated time is always floored at each stop instead of the displayed time, which does not make sense: many trips of, say,
103km
and6000km/h
will have all the 0.99 minute trip time rounded away, results in hours of discrepancy from when the train will actually arrive.Scala translation
Description should be language-agnostic (Please modify description after approving the pending 3 translations)
C#
No random tests
Method name should be
PascalCase
(Please refer to implementation of backward compatibility here )Nice kata, I'd suggest adding regular expression tags.
Loading more items...