Skip to content

Commit c2ae2ee

Browse files
authored
Update Optimal_Stratergy_For_Game2.java
1 parent 17665af commit c2ae2ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DynamicProgramming/OptimalStratergyForGame/Optimal_Stratergy_For_Game2.java

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public int calcSum(int coins[]){
3333
dp[i][j] = -1;
3434
}
3535
}
36+
return game(coins, dp, 0, n-1, sum);
3637
}
3738

3839
public int game(int coins[], int dp[][], int i, int j, int sum){

0 commit comments

Comments
 (0)