Sort game - doubt

Can anyone plz point out the mistake , only 1 out of 4 test case is passing
ques link: https://hack.codingblocks.com/contests/c/452/90
soln link: https://ide.codingblocks.com/#/s/20025

check this
https://ide.codingblocks.com/#/s/20041
in ur code check comparator function

1 Like