3105. Longest Strictly Increasing or Strictly Decreasing Subarray
You are given an array of integers
nums
. Return the length of the longest subarray ofnums
which is either strictly increasing or strictly decreasing.
1 | class Solution { |
3105. Longest Strictly Increasing or Strictly Decreasing Subarray
You are given an array of integers
nums
. Return the length of the longest subarray ofnums
which is either strictly increasing or strictly decreasing.
1 | class Solution { |