Skip to content

Given an unsorted array of numbers, write an algorithm that confirms, if an array consists of consecutive elements or not.

License

Notifications You must be signed in to change notification settings

yashvardhan-rustedlegend/Array-Consecutive-is-not

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Array-Consecutive-is-not

Given an unsorted array of numbers, write an algorithm that confirms, if an array consists of consecutive elements or not.

Examples:

a) If the array is {34, 23, 52, 12, 3 }, program should print, the elements are not consecutive. b) If array is {83, 78, 80, 81, 79, 82}, program should print, the array has consecutive numbers from 78 to 83.

About

Given an unsorted array of numbers, write an algorithm that confirms, if an array consists of consecutive elements or not.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages