DEV Community

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

Collapse
 
detunized profile image
Dmitry Yakimenko

Have you tested on the maximal N = 1e6 as stated in the problem description? Your solution seems to be O(N*N) so it will be really slow.