@coderbyheart on Twitter

A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].

Home / Archive / 2021 / 2021-12 / 1471223679736496133
Replying to @coderbyheart

That's the fix:
https://github.com/coderbyheart/adventofcode/commit/b9c57830331f8669da34bbed83c6fb1ed457cdee

Instead of iterating over all remaining positions all the time, only put the
last visited into the queue. Eventually the algorithm will visit all points
anyway. Runtime is now 4 seconds.

Wed, 15 Dec 2021 21:00:33 UTC♥ 2