3 ms·
> How can I come up with solutions to puzzles more quickly? If that's the goal, an obvious solution may be to not write useless comments, typing and verbose fu
by seba_dos1 5y ago
> How can I come up with solutions to puzzles more quickly?
If that's the goal, an obvious solution may be to not write useless comments, typing and verbose function names :) Solving day 1 in Python is 10 lines of code without even trying to golf it.
- charcircuit 5y agoHe copied and pasted that comment from the problem.
- seba_dos1 5y agoThere's no such text in the problem - see https://adventofcode.com/2021/day/1 https://adventofcode.com/2021/day/1. That comment describes the solution, not the problem. The program's output is also annotated; you don't do that if you try to be fast, you already know what the output is gonna mean.