PrepZone Logo
PrepZone
Back to Fundamentals

Fundamentals · Medium

What is Big O notation? Explain O(1), O(n), O(log n), and O(n²) with examples.

FresherFundamentalsProgramming Fundamentals

Answer preview

Big O notation describes how runtime or space grows as input size n increases — worst-case upper bound.…