← Microsoft questions
CodingEasyReported in a candidate post, Jul 2025

Check whether an array is a valid mountain array

Filed under Microsoft

Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that arr is a mountain array if and only if: - arr.length >= 3 - There exists some index i with 0 < i <…

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 Microsoft questions

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