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.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
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.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published