here is my code:
Sir my one test case is failing in sort game but i don't know which one
@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