Public
Edited
Dec 15, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
AOC.resultTable(meta)
Insert cell
part1 = (s) => s.length
Insert cell
Insert cell
part2 = (s) => s.length
Insert cell
data = parse(which === "test1" ? test1 : input)
Insert cell
parse = (s) => s.split(",").map((l) => l.split(""))
Insert cell
Insert cell
Insert cell
inputs = ({
test: test1,
real: input
})
Insert cell
meta = AOC.meta({
day: 15,
year: 23,
title: "Lens Library",
parse,
inputs,
parts: [part1, part2],
expected: { test: [1320, 145], real: [514639, 279470] },
href: "https://observablehq.com/@a1ip/aoc-2023-day-15"
})
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more