Search
⌘K

Leetcode 941. Valid Mountain Array

Check whether the array has length at least 3 and there exists a single peak index 0 < i < n-1 such that the values strictly increase up to i and then strictly decrease after i. In other words, verify the sequence is strictly increasing then strictly decreasing with the peak not at an endpoint.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.