Score Combinations - Variant-2


Hi, I am trying to figure out the optimal substructure for 2nd variant of Score Combinations problem in Dynamic Programming. (where it’s asked to get number of ALL combinations - not the unique ones). Can anyone help me out or point me to the resource to understand?