Available question text
Given an array, you may reverse one contiguous subarray to maximize the sum of absolute differences between adjacent elements; compute the maximum achievable array value. The challenge is to determine which reversal (affecting boundary contributions and interior extremes) yields the largest gain efficiently for arrays up to ~3×10^4 elements.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1330. Reverse Subarray To Maximize Array Value
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source