Public
Edited
Nov 6, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function gcd(m, n) {
if (m == 0 || n == 0) return 0;
if (m == n) return m;
if (m > n) return gcd(m - n, n);

return gcd(m, n - m);
}
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