Maximize an array's score by reversing at most one contiguous subarray.
Unlock detailed company stats for this questionUpgrade
Given an array of integers, maximize the score of the array by reversing at most one contiguous subarray. The score of an array is the sum of absolute differences between consecutive elements.
Community answers
No answers contributed by the community yet.
Related courses

Course

