I don't know why my code is not working

code-https://ide.codingblocks.com/s/326560

hello @amanb25 corrected
the output which your code was producing was not sorted and was not complete.
i have made changes in your code now it passes all the test case .
codehttps://ide.codingblocks.com/s/326619
i hope i have cleared your doubt .

1 Like

@amanb25 as you are not respoding that’s why i feel that your doubt is resolved .
you can now mark this doubt as resolved .on off the chance if you still feel that you have doubt in any concept building you can reopen and ask the same doubt .
Happy Learning !!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.