Check out how you can solve this problem with Elixir and LiveBook! Subscribe to stay tuned for the next ones.
Support me on Ko-Fi: https://ko-fi.com/sekun
I intentionally excluded the Nx solutions since it's experimental and dense with explanations (they deserve their own video!). I will upload a separate video for the Nx solutions.
Playlist: • José Valim does Advent of Code (2021)
Catch José Valim's broadcasts - / josevalim
AoC repo: https://github.com/josevalim/aoc
Elixir: https://elixir-lang.org
LiveBook: https://livebook.dev
Kino: https://github.com/livebook-dev/kino
00:00 - Introduction
00:07 - Saving new notebook
00:26 - Recap on star mechanic
00:44 - Part 1: Problem reading
01:35 - Using problem test input
01:48 - Line endings caveat for file reads
02:14 - Parsing input data
04:06 - Computing depth and position
05:59 - Installing Kino
06:26 - Adding Kino textarea for input data
06:45 - Reading data from textarea
07:11 - Running program with puzzle's input
07:31 - Submitting part 1 answer
07:42 - Refactoring part 1 solution
08:52 - Remarks on new approach
09:05 - Refactoring cont.
09:39 - More remarks on new approach
09:57 - Kino disclaimer
10:30 - Part 2: Problem reading
11:17 - Using problem test input
11:42 - Some regrets on new approach
11:48 - Refactoring solution for new part
13:00 - Running program with puzzle's input
13:29 - Submitting part 2 answer
13:36 - Conclusions
Outro Music
Title: You and Me
Artist: Sharou ( / @sharou )
Link: / @sharou
Submarine photo: https://unsplash.com/photos/XIxHvh7vlJg
#AdventOfCode2021 #AdventOfCode #Elixir