Skip to content

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

Lucaslpena/arrayFunctionalFunction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

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

No packages published

Languages