Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 835 Bytes

AoC2021 retrospective.md

File metadata and controls

18 lines (13 loc) · 835 Bytes

AoC2021

My solutions to Advent of Code 2021 https://adventofcode.com

My overall goal is not speed. If there is a path I don't know how to do, I'll go after that, even if it is not necessarily the ideal solution.

Most interesting problems:

Day 6, the exponential lanternfish

I learned:

  • When your first solution approaches the limits of the JVM, reconsider your approach
  • When stuck, draw the problem ex. as a graph
  • How to use the Java Random File Access class, only to learn just how slow file access is
  • This is a big one for me. My final solution in C was a recursive algorithm, something I had struggled with before.

Day 8, the crossed displays

  • I think I could have spent more time solving the problem and less time playing with typedefs and data structures. Try to use the data with minimal transformation