Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT dp = [ [ - 1 for i in range ( 100 ) ] for i in range ( 100 ) ] NEW_LINE arr = [ - 2 , 1 , 3 , - 2 , 4 , - 7 , 20 ] NEW_LINE K = 1 NEW_LINE N = len ( arr ) NEW_LINE print ( MaximumSubarraySum ( N , arr , K ) ) NEW_LINE DEDENT