... programming requires more concentration than other activities. It's the reason programmers get upset about quick interruptions' - such interruptions are tantamount to asking a juggler to keep three balls in the air and hold your groceries at the same time. Steve McConnell

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.