Return any pair of indices {i, j} forming a good subarray, as in Maximum Good Subarray Sum.
Unlock detailed company stats for this questionUpgrade
A variation of LeetCode 'Maximum Good Subarray Sum' (https://leetcode.com/problems/maximum-good-subarray-sum) in which you return any pair of indices {i, j} rather than the maximum sum.
Community answers
No answers contributed by the community yet.
Related questions
Find the maximum length of a good subarray.Find the maximum product subarray in a given array.Related courses

Course

Course
Course
