Can I ask what is this step:
if (dp[i][j][k] > 0) return dp[i][j][k];
means? Will dp[i][j][k] be negative?
The solution is so clear, thank you very much!
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.