Grokking Dynamic Programming Patterns for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
For "Top-down Dynamic Programming with Memoization", is there a good explanation...

Ray

Jul 12, 2022

For "Top-down Dynamic Programming with Memoization", is there a good explanation on using the currentIndex as key first, then sum as key? Why currentIndex should be first?

The alternative would be to use sum as first key and then currentIndex as key.

0

0

Comments
Comments

On this page

Problem Statement

Try it yourself