Given an array of unsorted positive integers, write a function that finds runs of 3 consecutive numbers (ascending or descending) and returns the indices where such runs begin. If no such runs are found, return null.
Lucaslpena/arrayFunctionalFunction
Given an array of unsorted positive integers, write a function that finds runs of 3 consecutive numbers (ascending or descending) and returns the indices where such runs begin. If no such runs are found, return null.
Scala