Question: Write an expansion function that will take an input string like 1..5,8,11..14,18,20,26..30 and will print 1,2,3,4,5,8,11,12,13,14,18,20,26,27,28,29,30

Write an expansion function that will take an input string like

"1..5,8,11..14,18,20,26..30" and will print

"1,2,3,4,5,8,11,12,13,14,18,20,26,27,28,29,30"

Step by Step Solution

3.41 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To expand the input string into a commaseparated list of numbers you can follow th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Data Structures Algorithms Questions!