Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
answer = triangleSides.length
Insert cell
triangleSides = SortedSidesTriples.filter(
(sides) => sides[0] + sides[1] > sides[2]
)
Insert cell
SortedSidesTriples = sidesTriples.map((sides) => sides.sort((a, b) => a - b))
Insert cell
sidesTriples = d3.dsvFormat(";").parseRows(text, d3.autoType) //.parseRows(text, (d) => {return {a: +d[0], b: +d[1], c: +d[2]};}) // если хотим массив объектов с именоваными стоблцами, то используем закомментированный вариант
Insert cell
text = FileAttachment("9.csv").text()
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