Skip to content

fix(curriculum): align dynamic programming review with JS module - #71589

Closed
ShakilUrRehman21 wants to merge 1 commit into
freeCodeCamp:mainfrom
ShakilUrRehman21:fix/align-js-dynamic-programming-review
Closed

ShakilUrRehman21 wants to merge 1 commit into
freeCodeCamp:mainfrom
ShakilUrRehman21:fix/align-js-dynamic-programming-review

Conversation

@ShakilUrRehman21

@ShakilUrRehman21 ShakilUrRehman21 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Checklist:

Description

Aligns the JavaScript Dynamic Programming Review (review-dynamic-programming-js) with the concepts taught in the JavaScript lecture module (What Is Dynamic Programming and What Are Some Common Algorithms?), mirroring the alignment made in #71557 for the Python module:

  • Introduces the climbing stairs problem statement before its recursive, memoization, and tabulation solutions.
  • Compares the exponential O(2^n) naive recursive time complexity with O(n) for memoization and tabulation, contrasting their O(n) space usage and call-stack characteristics.
  • Summarizes the constant-space tabulation optimization (O(1) auxiliary space) retaining only the previous two stair counts with a complete JavaScript implementation.
  • Summarizes the minimum-coin change algorithm using tabulation with denominations [1, 3, 4] and target 6, along with O(amount * number_of_coins) time and O(amount) space complexity.

Fixes #71692

@ShakilUrRehman21
ShakilUrRehman21 requested a review from a team as a code owner November 5, 2026 06:15
@github-actions github-actions Bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Nov 5, 2026
@majestic-owl448 majestic-owl448 added the js v9 cert This is for the JS V9 certification. label Nov 13, 2026
- Introduce the climbing stairs problem statement before its memoization and tabulation solutions.
- Add naive recursion explanation and compare O(2^n) exponential time complexity with O(n) linear time complexity for memoization and tabulation.
- Contrast O(n) space usage and call-stack characteristics between memoization and tabulation.
- Add constant-space tabulation optimization (O(1) auxiliary space) retaining only the previous two stair counts.
- Add minimum-coin change algorithm using tabulation with denominations [1, 3, 4] and target 6, along with O(amount * number_of_coins) time and O(amount) space complexity.
@ShakilUrRehman21
ShakilUrRehman21 force-pushed the fix/align-js-dynamic-programming-review branch from 868f4e7 to 0b361e8 Compare November 17, 2026 08:36
@huyenltnguyen

Copy link
Copy Markdown
Member

Hi there, thanks for the PR!

The curriculum is currently undergoing some major changes so we may need to remove or rearrange some lesson content. Please allow us to triage the issue first. Once it's marked as open for contribution, you're welcome to submit a PR reflecting the agreed direction.

We'll close this PR to avoid it sitting idle in the queue. Thanks for understanding!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

js v9 cert This is for the JS V9 certification. scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[JS v9] Dynamic Programming Review: add problem setup, recurrence complexity, and coin change algorithm

3 participants