Repository navigation
fix(curriculum): align dynamic programming review with JS module - #71589
Closed
ShakilUrRehman21 wants to merge 1 commit into
Closed
ShakilUrRehman21 wants to merge 1 commit into
ShakilUrRehman21 wants to merge 1 commit into
Conversation
- 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
force-pushed
the
fix/align-js-dynamic-programming-review
branch
from
November 17, 2026 08:36
868f4e7 to
0b361e8
Compare
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist:
mainbranch of freeCodeCamp.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:O(2^n)naive recursive time complexity withO(n)for memoization and tabulation, contrasting theirO(n)space usage and call-stack characteristics.O(1)auxiliary space) retaining only the previous two stair counts with a complete JavaScript implementation.[1, 3, 4]and target6, along withO(amount * number_of_coins)time andO(amount)space complexity.Fixes #71692