Skip to content

Commit 5b3e02b

Browse files
committed
Add stub and adapt interface
1 parent fe387e3 commit 5b3e02b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.packt.datastructuresandalg.lesson4.activity.coinchange;
2+
3+
public class CoinChange {
4+
public Integer ways(int N, int[] coins) { return null; }
5+
}

src/main/java/com/packt/datastructuresandalg/lesson4/activity/coinchange/solution/CoinChange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.packt.datastructuresandalg.lesson4.activity.coinchange.solution;
22

33
public class CoinChange {
4-
public int ways(int N, int[] coins) {
4+
public Integer ways(int N, int[] coins) {
55
int[][] dp = new int[N + 1][coins.length + 1];
66
for (int j = 0; j <= coins.length; j++)
77
dp[0][j] = 1;

0 commit comments

Comments
 (0)