896. Monotonic Array
https://leetcode.com/problems/monotonic-array/
判断数组是否有单调性。遍历并用一个变量记录遇到的单调性,当遇到不满足已记录的单调性的元素时返回false。
Previous1007. Minimum Domino Rotations For Equal RowNext1333. Filter Restaurants by Vegan-Friendly, Price and Distance
Last updated
Was this helpful?