Skip to content

Commit 50f97e2

Browse files
greedy solution for minimum chocolate cutting cost
1 parent 21a0060 commit 50f97e2

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/com/thealgorithms/greedyalgorithms

1 file changed

+2
-0
lines changed

src/main/java/com/thealgorithms/greedyalgorithms/Chocola.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/**
77
* Greedy approach to minimize the cost of cutting a chocolate bar into 1x1 pieces.
88
*/
9+
910
public class Chocola {
1011

1112
/**
@@ -60,3 +61,4 @@ public static void main(String[] args) {
6061
System.out.println("Cost = " + totalCost);
6162
}
6263
}
64+

0 commit comments

Comments
 (0)