I found this famous dp problem in many places, but I can not figure out how to solve.
You are given a set of n types of rectangular 3-D boxes, where
A solution to the problem consists of three steps.
The third step is the most expensive and bumps the complexity of the solution to O(n^2)
.
If you would like to read a complete explanation of the approach, how each step contributes to finding an answer, and full code, have a look at the blog post I wrote about the problem.