Scribble 3: Longest Mountain Range in the array

Here’s the problem statement:Given an array of integers, find the length of the longest mountain in the array.Mountain here represents a subarray where the values of the constituent integers first follow a strictly increasing and then a strictly decreasing order. For example:The array: 10, 12, 40, 30, 20, -1, 5, 6, 1Output: 6 where theContinue reading “Scribble 3: Longest Mountain Range in the array”

Create your own website, free on WordPress.com.Create your own website.
Start free