Daily challenge for 2025-09-02
245. Longest Mountain in Array
Given an array arr, a mountain is defined as a sequence that strictly increases and then strictly decreases with at least one up and one down. Return the length of the longest mountain; if none, return 0.
Example:Input: arr = [2,1,4,7,3,2,5]Output: 5
Run this challenge interactively in Python or JavaScript when the app loads.