How do people usually tackle AdventOfCode? Most elegant/concise solution or best performant?
Asking because for example most solutions to Day 1 I've seen are O(n^2)
Asking because for example most solutions to Day 1 I've seen are O(n^2)
I sometimes go back and clean up my solutions, though I aim for a combination of clarity and performance if I do that, clarity first.