Daily challenge for 2025-06-10
161. Valid Mountain Array
Write a function solve that determines if an array is a valid mountain array. A valid mountain array has the following properties:
• Length of at least 3 elements
• Elements first strictly increase, then strictly decrease
• There must be at least one element in both increasing and decreasing parts
Example:Input: [0, 3, 2, 1]Output: True
Run this challenge interactively in Python or JavaScript when the app loads.