Nageshwar Reddy

Nageshwar Reddy

  • NA
  • 19
  • 3.2k

Find the Consecutive numbers of given string

Jul 12 2019 7:23 AM
 I need find the consecutive numbers of a given string 
 
Ex: "1,2,3,4,5,7,8,9" 
 
answer should return like 1,2,3,4,5 and 7,8,9  count : 2
 
Any one pls provide the solution as soon as possible. 

Answers (2)