Shared explainer · works offline
Someone sent you a concept to explore.
AI chose playground · Adjusting n reveals how a quadratic curve bends away from linear growth.
Big-O growth
Increase input size and compare linear work with a quadratic algorithm.
This is why code that feels instant for 10 items can freeze when the input reaches 10,000.
Input n
50
n² / n gap
50×
At the selected n
O(n²)
O(n)
Prove it in code
let operations = 0;
for (let i = 0; i < 3; i++) {
for (let j = 0; j < 3; j++) operations++;
}
console.log(operations);What does this print?