Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT n = 9 NEW_LINE val = [ 88 , 22 , 83 , 14 , 95 , 91 , 98 , 53 , 11 ] NEW_LINE cost = [ - 1 , 24 , - 8 , 67 , 64 , 65 , 12 , - 80 , 8 ] NEW_LINE DEDENT