Sir my one test case is failing in sort game but i don't know which one

here is my code:

@Rajan_42 erasing elements is a very expensive operation that takes O(n) time
Instead you can sort the entire list and just dont print the pair that does not satisfy your condition

thanks. It’s working now

1 Like