prat945's blog

By prat945, history, 5 years ago, In English

Hello everyone, please help me debug this code (https://mirror.codeforces.com/contest/1539/submission/123994140). I have implemented this using two pointer method, and I believe that the logic is correct. I have also used a random test case generator and compared my solution with an accepted one , but to no avail. Any help/suggestion/support on this is greatly appreciated. Any general debugging tips are also appreciated. Thanks!

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it