Big-O notation — three code examples: O(1), O(n), O(n²). Why the gap matters as input size grows.
Why one function melts your laptop and the other doesn't.
Prompt
Explain Big-O notation using three short code examples — O(1), O(n), and O(n²) — and explain in plain words why the difference matters as input size grows.
Use this prompt