One principle problem of educating software engineers is that they will not use a new method until they believe it works and, more importantly, that they will not believe the method will work until they see it for themselves. Humphrey

Rod cutting

Language Java | Level Intermediate | Category Algorithms | August 4, 2015 8:54 am


Algorithm Problem Description

Write a program to find the maximum value obtainable by cutting up the rod and selling the pieces. Rod length is N

Output

          	        
          	        

Array of items: [0, 1, 5, 8, 9, 10, 17, 17, 20, 24, 30]
Rod Length = 5 and solution = 13

          	        
          	        				    


Comments



Please login to add comments.