⚡ Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 20m 25s17 days 22 hours 20 minutes 25 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 20m 25s17 days 22 hours 20 minutes 25 seconds.

Sign in to watch this lesson
Algorithms - Capstone · 5:29
A routine for a problem you have never seen: read the constraints to find the target complexity, write the obviously correct brute force, find its bottleneck and name the pattern that removes it, and check the edge cases before trusting anything. We run one problem, counting subarrays with sum k, through it four times: a triple loop, prefix sums, a one-pass hash map, and the shrinking window that negative numbers break. Then we time the three correct versions on a Mac.