Check out how José Valim solved 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: https://www.youtube.com/playlist?list...
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:12 - Part 1: Problem reading
01:26 - Parse numbers
02:08 - Parse boards
02:43 - Twitch chat: Why use tuples over lists?
02:58 - Parse boards cont.
04:10 - Remark on creating a board abstraction
04:23 - Twitch chat: `String.split()` is the same as `String.split(" ", trim: true)
04:31 - Parse boards cont.
05:45 - Getting board numbers, and positions
07:49 - Other approaches you could take
08:18 - Discussing next steps
08:27 - Using `Enum.reduce_while` and when to use it
09:42 - Implementing marking of numbers
12:26 - Checking if a board won
13:47 - José struggles
13:53 - Checking if a board won cont.
16:56 - Install Kino in LiveBook
17:01 - Adding a textarea to the notebook
17:19 - Reading data from textarea
17:46 - Automatically reevaluate a cell when input changes
18:02 - Part 2: Problem reading
18:26 - Reorganizing notebook sections
19:43 - Reject winning boards
22:18 - Submit part 2 answer
Outro Music
Title: You and Me
Artist: Sharou ( / @sharou )
Link: / @sharou
Bingo photo: https://www.pexels.com/photo/number-o...
#AdventOfCode2021 #AdventOfCode #Elixir