Challenge: The 0/1 Knapsack Problem
Get introduced to the famous knapsack problem and solve a coding challenge based on it.
We'll cover the following...
Welcome to your first dynamic programming problem! Remember to work your way up to the correct solution. It might help to think of the brute force solution first, then memoize it or tabulate it. The process of coming up with a solution to a problem like this would be similar to a real interview. Remember, you can discuss it with your interviewer and talk out loud while you’re implementing the solution. Good luck!
Changing the prototype of the given function would result in an error. If the need to ...