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

Advent of Code - Template

advent-of-code/template.livemd

Advent of Code - Template

Mix.install([
  {:kino, "~> 0.14.2"},
  {:kino_vega_lite, "~> 0.1.13"},
  {:kino_explorer, "~> 0.1.23"}
])

Puzzle Input

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

Part 1

part_1_test_input = Kino.Input.textarea("Please paste the test input for part 1:")
part_1_test_input
|> Kino.Input.read()
puzzle_input
|> Kino.Input.read()

Part 2

part_2_test_input = Kino.Input.textarea("Please paste the test input for part 2:")
part_2_test_input
|> Kino.Input.read()
puzzle_input
|> Kino.Input.read()