mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-09 03:59:38 +08:00
Result print
This commit is contained in:
@ -26,7 +26,8 @@ public class RodCutting {
|
|||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
int[] arr = new int[]{2, 5, 13, 19, 20};
|
int[] arr = new int[]{2, 5, 13, 19, 20};
|
||||||
int size = arr.length;
|
int size = arr.length;
|
||||||
|
int result = cutRod(arr,size);
|
||||||
System.out.println("Maximum Obtainable Value is " +
|
System.out.println("Maximum Obtainable Value is " +
|
||||||
cutRod(arr, size));
|
result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user