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.