In going through the problems that follow the “Longest Common Substring” DP pattern, I noticed that for the top down solutions, sometimes we pass in a sum or a count into the params of the recursive helper method (e.g. for “Maximum Sum Increasing Subsequence”); while other times we do not.
Can someone help me understand HOW I can develop an intuition for when/when not to include a running total in the params? Thanks!