CodingReported in a candidate post, Jan 2026
Maximum length of a good subarray
Filed under LinkedIn
The question
Find the maximum length of a good subarray, where a subarray is good if all its elements are less than the subarray's length. The expected complexity was O(n).
No write-up yet. Related questions below have one.
Related LinkedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.