I submitted this java code and it’s giving me an error, IDK why, pls help :frowning:


This is my code, pls help
BTW, its running for given test cases,
and i did not find solution to this :expressionless:

  • created

    Oct '22
  • last reply

    Nov '22
  • 1

    reply

  • 553

    views

  • 2

    users

  • 2

    links

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.

CHOCOLA14