3 ms·
I love looking at other ways to solve these problems. But I hope it remains clear to all that there's no singular right way to solve them. I remember writing a
by Waterluvian 8y ago
I love looking at other ways to solve these problems.
But I hope it remains clear to all that there's no singular right way to solve them. I remember writing a few of them thinking, "the big O is terrible but this is so much more obvious to read." Or even, "I bet part 2 will want to do X so I'll make it more robust for refactoring." So many variables. Fun to practice which ones you constrain.
- a_humean 8y agoI've enjoyed solving them on my own and then looking at the other solutions in the AoC subreddit. Its really interesting to see how people solve them in lots of languages including the language I wrote in. Usually I learn something new, and even if its in a different language I can see optimisations that I could apply to my solution.