โ† Apple questions
CodingReported in a candidate post, Oct 2025

Maximum length of a mountain in an array

Filed under Apple

Given an integer array, find the length of the longest mountain subarray. A mountain has length at least 3, strictly increases to a single peak, then strictly decreases. Return 0 if none exists.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Apple questions

Collected from public candidate posts and coding forums. Updated Nov 2026.