I wrote a simple code which satisfies all the test cases used to check my answer. In order to verify it, I unlocked the test cases and used them to test my code on the machine and my code satisfies all the cases still it shows wrong answer and also some code was already written in the editor before I came to this section of course and it does not update my answer for submission.
My code passes all test cases
hi @krishnasaxena69_7c51c3eb323f70a3 code is correct just sort the array after taking input (order is changing else)
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.
1 Like