DEV Community

Discussion on: Remove terrible bus routes (find an algorithm)

Collapse
 
choroba profile image
E. Choroba

Why is 27 40 not part of the solution 2?

Collapse
 
hkrogstie profile image
Håvard Krogstie

That's a very good question! I'll debug my program right after breakfast.

Collapse
 
hkrogstie profile image
Håvard Krogstie • Edited

Ok, there is not an issue with the program, but the test input, rather. The first line says 20, when there are 30 trips to read. Fixed.