Longest Mountain in Array
CodingPhoneSoftware EngineerReported Mar, 2026
Company question banks are included with the Insider plan.
You may recall that an array arr is a mountain array if and only if:
arr.length >= 3i with 0 < i < arr.length - 1 such that: