Below is the solution for Sum It Up Problem:-
Can you tell me what's wrong with my code?
hi,
what problem are u exactly facing with dis code?
I am passing 2 test cases out of 4 and two are failing.
instead of making set, try storing the strings in vector since set will sort the string lexographically but the output is required in the order in the increasing order of first integer.
for eg. if you store β11 2β and β4 9β in set, you will get output as β11 9β β4 9β but the required output is β4 9β β11 2β
1 Like
I hope Iβve cleared your doubt. Please try to rate your experience. Your feedback is very important as it help us improve our platform and provide better learning experience.
