What is problem in my bottom-up code ?
Wrong answer using 3d dp
hello @kunal81198
a) In line no 25 it should be->
dp[i][j][k]=dp[i-1][j-1][k] + 1;
b) in line 29 3rd argument should be
dp[i-1][j-1][k-1]
1 Like