I cannot understand why it s giving such outputs.
the problem link -https://codeforces.com/contest/1517/problem/B
Please correct my code
I cannot understand why it s giving such outputs.
the problem link -https://codeforces.com/contest/1517/problem/B
Please correct my code
hello @Somasree
use sorted in place of sort. because sort function sorts the same list and returns nothing.
Its giving wrong ans on test 2.please correct my code
simple sorting will not ensure minimum.
do it this way->

can u plz help me implement this in my code …
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.