I submitted this java code and it’s giving me an error, IDK why, pls help
This is my code, pls help
BTW, its running for given test cases,
and i did not find solution to this
I haven’t been able to find a test case to illustrate the problem, but I made a minor change to the Pair.compareTo() method and got AC.
See if you can spot the problem.