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

Sign in to watch this lesson
Algorithms - Foundations · 4:20
What each standard container really costs once the hardware gets a say: the shapes behind vector, deque, list, set/map and unordered_map, a million ints summed in a vector versus a list on a Mac (with the list's nodes shuffled, over a thousand times slower), and why std::lower_bound on a set walks two hundred thousand steps while s.lower_bound makes seventeen comparisons. It ends with three traps that cost contestants every week: accumulate's init type, map[] inserting on read, and multiset::erase(value).