|
There is certainly a faster solution for day 2, but my Lua solution gives the answer in 40 ms with my input on my machine, and my Haskell solution does in 120 ms (it could certainly be much faster but I don't know Haskell well so I don't really aim for performance).