solving https://adventofcode.com/ challenges, mostly in (bad, nooby) OCaml
won't be able to stick do the 1-per-day schedule so a reasonable target is to finish AOC 2021 by end-Jan 2022
will solve mostly when I'm bored of other work
in an effort to resist the urge of constantly improving and cleaning up my solutions (because i don't have the time to spare), i am enforcing a strict git push
-and-never-touch-the-file-again rule the instant my code produces correct output
as a coping mechanism i will instead list how each solution makes me feel
sol | comments |
---|---|
ocaml_01 (A+B) | ok, aoc seems fun |
ocaml_02 (A+B) | good, i'm happy that i'm starting to write tail-recursive functions by default |
ocaml_03A | i tried to do imperative style but this is truly horrific, should've done aoc with haskell |
ocaml_03B | back to normal FP style, prolly didn't need to do the custom types tho, but happier |
ocaml_04A | first time using OCaml where I was truly hardstuck on a logic bug (which is a good thing and credit to FP), so I kept the debug code to remind myself |
ocaml_04B | pretty good, had to catch bug which i denoted in comment but did it quicker than i expected in hindsight |