Public
Edited
Dec 14, 2022
Insert cell
Insert cell
Insert cell
numContained = _.chain(sectionPairs)
.filter(([a, b]) => a.length === 2 && b.length === 2)
.map(([a, b]) => oneIsContained(a, b))
.filter()
.value().length
Insert cell
Insert cell
Insert cell
Insert cell
sectionPairs = parseInput(puzzleInput)
Insert cell
Insert cell
Insert cell
Insert cell
import { splitNewlines } from "@pnavarrc/2022-advent-of-code-day-03"
Insert cell
puzzleInput = FileAttachment("2022-04-puzzle-input.txt").text()
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