Find the maximum length of a good subarray.
Unlock detailed company stats for this questionUpgrade
A subarray is good if all its elements are less than the length of that subarray. I could not find a similar problem on LeetCode and solved it after some hints. Expected time complexity: O(n).
Community answers
No answers contributed by the community yet.
Related questions
Find the maximum length sub-array with a given sum.Find the maximum subarray sum.Find the maximum sum subarray of size k.Related courses

Course

Course
Course
