Skip to content
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

Dynamic programming advanced #12

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

janiceshiu
Copy link
Owner

@janiceshiu janiceshiu commented Jul 5, 2020

preclass work was doing dynamic programming problems on Leetcode + making sure you're comfortable with the problems from the last class

i think the main issue is that it's still quite hard for me to break the problem down into subproblems.

frog problem 4 ways -
while doing this, I realised that the memo for say, back to front is the same whether it's iterative or recursive. the only difference is how the memo is built. eg: the order in which it is built, the stack calls, etc

same for front to back recursive / iterative. commented that in the code too and printed out the final memos to confirm this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant