()
| 8 | private static int count=0; |
| 9 | |
| 10 | private static void init() { |
| 11 | coins = new ArrayList<Integer>(); |
| 12 | coins.add(1); |
| 13 | coins.add(3); |
| 14 | coins.add(5); |
| 15 | coins.add(9); |
| 16 | coins.add(10); |
| 17 | coins.add(14); |
| 18 | coins.add(18); |
| 19 | coins.add(23); |
| 20 | } |
| 21 | |
| 22 | /*Prints all comninations of the coin change*/ |
| 23 | public static void coinCombinations(int amount,int index,LinkedList<Integer> list) |