Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 38s1 days 16 hours 1 minutes 38 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 38s1 days 16 hours 1 minutes 38 seconds.

Sign in to watch this lesson
Algorithms - Foundations · 4:15
How to count work precisely: Big-O keeps only the shape of the cost, loops add or multiply, and hidden loops like s = s + c turn one loop into two. We halve a million candidates down to one in 20 steps, push 17 numbers into a vector and count 31 moves to see amortized O(1), measure the rare slow push that reserve() removes, and find the n log n hiding in the harmonic sum.