Gulshan Kumarperfinsights.hashnode.dev·Apr 21, 2024Longest Strictly Increasing or Strictly Decreasing SubarrayYou are given an array of integers nums. Return the length of the longest subarray ofnums which is either strictly increasing or strictly decreasing. LeetCode Problem - 3105 class Solution { public int longestMonotonicSubarray(int[] nums) { ...Java SolutionarrayAdd a thoughtful commentNo comments yetBe the first to start the conversation.