What is Big-O notation?
Big-O describes the worst-case growth rate of an algorithm's time or space as input size n grows. It ignores constants and lower-order terms — O(2n) and O(n) are the same class. The point is comparing how algorithms scale, not exact runtimes.