https://ide.codingblocks.com/s/236301… he given example is passing and I am not getting where I am wrong…plz help asap
I am getting wrong answer but I think my logic is correct
Hello @dhirenkinha,
Your comparator function is wrong.
Correct logic:
Let me know if you don’t understand something.
Hope, this would help.
Give a like if you are satisfied.
1 Like