Public
Edited
Oct 2, 2024
Insert cell
Insert cell
Insert cell
Insert cell
day1Input[0].reduce((c,d,i)=>{
return d.includes('oneight') ? c.push(i) && c : c
},[])
Insert cell
Insert cell
Insert cell
d1p2_0[195]
Insert cell
d1p2 = d3.sum(d1p2_0, d=>d.result)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d2p1_3 = d3.sum(d2p1_2, d=>d.id)
Insert cell
d2p2_0 = d3.sum(d2p1_1.map(it=>it.max.red * it.max.green * it.max.blue))
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more