4 / 4
Dec 2022

I would suggest you to go through the Dynamic programming chapter in the CLRS book Introduction to Algorithms. That will help you in greatly understanding this and similar problems.

4 years later

Hey,
You can try the recursive approach for solving the rod cutting problem. I solved the same rod cutting problem12 on CodeStudio, you can try it too if you want, then later on check the problem details for a proper explanation of the same problem.