DEV Community

Discussion on: Advent of Code 2020: Day 13 using...a lot of math, and Numpy in Python

Collapse
 
juliodcs profile image
juliodcs

Wow! A fast solution that didn't use Chinese remainder theorem.

I used a brute-force approach too, but mine is much slower because I used a 'fixed' block/interval (for 3 biggest buses), which I need to calcculate in before. Sort of the same concept, but I didn't realize I could use a 'varying' interval size.

Great solution! 👏👏👏