Public
Edited
Dec 14, 2022
Insert cell
Insert cell
Insert cell
input = FileAttachment("AoC_day11.txt").text()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
évalueTrafficDesSinges(singeInspections)
Insert cell
Insert cell
Insert cell
singeInspections2 = {
for (const round of actionsDesSinges2(actions, 10000)) {
if (round.round % 100 === 0) {
yield round.monkeys.map((monkey) => monkey.inspections);
}
}
}
Insert cell
évalueTrafficDesSinges(singeInspections2)
Insert cell
Insert cell
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