Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 1 , 1 , 2 , 2 , 3 , 4 ] NEW_LINE cost = [ 3 , 2 , 5 , 4 , 2 , 1 ] NEW_LINE N = len ( arr ) NEW_LINE minimumCost ( arr , cost , N ) NEW_LINE DEDENT