Code24Lab

Memoization: From Exponential to Linear Calls

Lesson 15 of 20 Lab 🔒 Locked

Lessons in this course

  1. Lexical Scope & Closures: The Counter FactoryLabFree
  2. The Loop Closure Trap: var, let and Per-Iteration BindingsLab Locked
  3. Private State in Closures: A Fixed-Window Rate LimiterLab Locked
  4. this Without Guesswork: The Four Binding Rules and ArrowsLab Locked
  5. call, apply and bind: Explicit this and Partial ApplicationLab Locked
  6. The Prototype Chain: Lookup, Shadowing and WritesLab Locked
  7. class, extends and super: Dynamic Dispatch in PracticeLab Locked
  8. Own vs Inherited Keys: for…in, Object.keys and EnumerabilityLab Locked
  9. Timers and the Macrotask Queue: When Does a Callback Really Run?Lab Locked
  10. Microtasks vs Macrotasks: Promise Chains InterleaveLab Locked
  11. async/await Under the Hood: Counting Microtask TicksLab Locked
  12. Sequential, Promise.all or a Pool: Timing Concurrent WorkLab Locked
  13. Generators: Pausing Functions, next(value) and SpreadLab Locked
  14. Lazy Pipelines: Doing Less Work with GeneratorsLab Locked
  15. Memoization: From Exponential to Linear CallsLab Locked
  16. Debounce and Throttle: Timers Inside ClosuresLab Locked
  17. Complexity by Counting: Loops, Doubling and Growth FactorsLab Locked
  18. Array vs Set: The Hidden Quadratic in filter + indexOfLab Locked
  19. Testing Mindset: Boundary Values Catch Off-by-One BugsLab Locked
  20. Capstone: An Event Batcher with Closures, Timers and LimitsLab Locked