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

Sign in to watch this lesson
Algorithms - Foundations · 4:13
A function that solves a problem by calling itself on a smaller copy of it: the Tower of Hanoi replayed move by move beside its call stack, what each stack frame costs and how a million-deep DFS crashes an 8 MB stack on a Mac while the explicit-stack version sails through. Then the fib(5) recursion tree and its repeated work (fib(40) needs over 331 million calls, 79 with memoization), and how to read running times off recursion trees with recurrences and the master theorem.