What changes to do in code ..please correct
@neelrai906 First thing is take the size of pair array till something like 1005. because it is the constraint.
Also make a extra counter for if , case so that you can count the number of compressions.
At last print the pair from 0 to till that extra counter you made.
Do these changes your code will pass.
Feel free to ask, if you are able to solve it then please mark it as resolved.
please do the changes in my code âŠi cant understand the iteration through pair
@neelrai906 i have commented the places where i did the changes, please have a look https://ide.codingblocks.com/s/227776
1 Like
@neelrai906 also remember to mark this doubt as resolved after solving and submitting the question finally.
1 Like