Big-O describes how an algorithm's running time or memory grows as the input size n grows. It captures the worst-case asymptotic behavior, ignoring constants and lower-order terms.
The idea
We care about growth rate, not exact step counts. O(2n + 5) is simply O(n) because as n grows large, constants and smaller terms stop mattering.
