Find the number of sequences in an integer array. A sequence is a list of numbers that comes in strict numerical order like [3, 4, 5, 6].
Sample Input : [1, 2, 3, 6, 8, 10, 11, 15, 16, 17]
Sample Output : 3 sequences
Any one can hlp please?
Thanks.
rajilakshmi 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.