Find the maximum sum subarray if you may flip the sign of one element.
Unlock detailed company stats for this questionUpgrade
Given an array of positive, negative and zero values, you can change the sign of at most one element. Find the maximum sum subarray. N <= 1e5, abs(a[i]) <= 1e9.
Community answers
No answers contributed by the community yet.
Related questions
Find the maximum subarray sum if you may remove any one element from the subarray.Find the maximum sum subarray of size k.Find the maximum subarray sum.Related courses

Course

Course
Course
