-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add new post on Dynamic Programming #588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
| βββββΌββββΌββββΌββββ€ | ||
| β 1 β 3 β 6 β 10β | ||
| βββββ΄ββββ΄ββββ΄ββββ | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| βββββΌββββΌββββ€ | ||
| β β β E β | ||
| βββββ΄ββββ΄ββββ | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| return dp[n]; | ||
| } | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a table and fill it step by step.
| // Uso: | ||
| const result = coinChange([1, 3, 4], 6); | ||
| console.log(result === Infinity ? -1 : result); // 2 | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add graph
|
|
||
| return dp[amount] === Infinity ? -1 : dp[amount]; | ||
| } | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add table
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
π Preview Url π |


π Description
π Linked issue
β Type of change
π Checklist