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.

It's not hard once you understand the problem. Work it through several times yourself, by hand. Notice particularly HOW you are using logical patterns to solve it.

Repeat until you understand those patterns - and that will form the skeleton of your algorithm for the program.

BUT - it's up to you to get a thorough understanding of the problem, and make a start with it - it's your assignment or problem, and we can't help hot air, so make that initial work. If you get stuck, post your code and describe the problem.