text: Return one only if the current path has included edge weight of atleast M
code: if ( used ) : NEW_LINE INDENT return 1 NEW_LINE DEDENT return 0 NEW_LINE if ( dp [ wt ] [ used ] != - 1 ) : NEW_LINE return dp [ wt ] [ used ] NEW_LINE ans = 0 NEW_LINE for i in range ( 1 , K + 1 ) : NEW_LINE