3 ms·
> my favorite restriction is to try to do incredibly terse approaches for those first few. For example, do it all in a single Python line Ha, this is pretty mu
by bhaney 2y ago
> my favorite restriction is to try to do incredibly terse approaches for those first few. For example, do it all in a single Python line
Ha, this is pretty much my favorite restriction too. I try to do one single-line expression for input parsing, one for the part 1 solution, and one for the part 2 solution (eg [1]). Thought sometimes I can't manage it and I just fall back to solving it normally.
[1] https://github.com/benhaney/Advent-of-Code/blob/master/2024/05/05.js https://github.com/benhaney/Advent-of-Code/blob/master/2024/...