I have tried all tc that I can imagine, I am getting correct answer, but on submitting I am getting WA, why so?
Why getting WA?
Your code is failing for input like :
1
2
30 3
It is giving output as 303 whereas correct ans in 330.
While sorting the strings use a comparator funtion.
@Avi-Kasliwal-315786729062203
Modified Correct Code : https://ide.codingblocks.com/s/201965
Hope it Helps.
1 Like