text: If the current edge weight is greater than or equal to M , set used as true
code: if ( i >= M ) : NEW_LINE INDENT ans += solve ( dp , wt - i , K , M , used 1 ) NEW_LINE DEDENT else : NEW_LINE INDENT ans += solve ( dp , wt - i , K , M , used ) NEW_LINE DEDENT dp [ wt ] [ used ] = ans NEW_LINE return ans NEW_LINE