How to make this output using javascript/C#?
Sample input below :
1,2,3,5,6,8,10,11,13,12
Output will be
1-3,5-6,8,10,13
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Laxmidhar SahooPosted Jan 24, 2020, 11:04 AM
Ashutosh GuptaPosted Jan 24, 2020, 9:35 AM