You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JS v9] Dynamic Programming Review: add problem setup, recurrence complexity, and coin change algorithm #71692
js v9 certThis is for the JS V9 certification.status: waiting triageThis issue needs help from moderators and users to reproduce and confirm its validity and fix.
Scope: JavaScript v9 Certification (review-dynamic-programming-js). This is distinct from the Python issue #71530.
Describe the Issue
The JavaScript Dynamic Programming Review (review-dynamic-programming-js) omits core concepts taught in the What Is Dynamic Programming and What Are Some Common Algorithms? JavaScript lecture:
Staircase examples lack problem context: Code begins immediately without stating what n represents (a staircase with n steps where each move climbs 1 or 2 steps).
Missing naive recursion complexity breakdown: Omits the recurrence explanation, subproblem recalculations, and resulting exponential O(2ⁿ) time and O(n) call-stack space.
Missing memoization vs tabulation comparison: Omits the distinction between top-down memoization's O(n) call-stack space and bottom-up tabulation's iterative array avoiding call-stack growth.
Missing constant-space tabulation optimization: Omits the O(1) auxiliary space optimization that stores only the last two counts (prev1, prev2).
Missing the Coin Change problem: Omits the lesson's worked tabulation algorithm, Infinity array initialization, recurrence formula, unreachable -1 return, and O(amount * number_of_coins) complexity.
js v9 certThis is for the JS V9 certification.status: waiting triageThis issue needs help from moderators and users to reproduce and confirm its validity and fix.
Activity