CodingReported in a candidate post, Aug 2020
Longest switching sub-array
Filed under American Express
The question
Find the length of the longest switching sub-array where all numbers in even positions are equal and all numbers in odd positions are equal.
No write-up yet. Related questions below have one.
Related American Express questions
Collected from public candidate posts and coding forums. Updated Nov 2026.