Finally solved it as well :slightly_smiling_face:....
# advent-of-code
l
Finally solved it as well 🙂. I started with a Matrix, which ended up on OutOfMemory instantly 😄 . Then I thought I am gonna write it to file, which gave me an estimate for 10GB per file - that was also not way to go 😁 , but finally I figured out the trick, although left my code optimised to write down a gigabite-sized sky snapshots to the files! 😆
k
minBy
is a lot faster than
map{}.min()
l
Ah, thanks for the tip 🙂. I was thinking about it and I though in this case it won't matter much, but it's good to know that next time I could always go with
minBy
by default without thinking too much about it :-)).