Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Advent of Code 2023 - Template

advent-of-code/2023/template.livemd

Advent of Code 2023 - Template

Mix.install([
  {:kino, "~> 0.11.3"},
  {:kino_vega_lite, "~> 0.1.11"},
  {:kino_explorer, "~> 0.1.12"}
])

Puzzle Input

puzzle_input_kino = Kino.Input.textarea("Please paste the puzzle input:")
puzzle_input = Kino.Input.read(puzzle_input_kino)

Part 1

part_1_test_input_kino = Kino.Input.textarea("Please paste the test input for part 1:")
part_1_test_input = Kino.Input.read(part_1_test_input_kino)
part_1_test_input
|> String.split("\n", trim: true)

Part 2

part_2_test_input_kino = Kino.Input.textarea("Please paste the test input for part 2:")
part_2_test_input = Kino.Input.read(part_2_test_input_kino)
part_2_test_input
|> String.split("\n", trim: true)