I am getting WA in two test cases can you please help.
Getting WA in two test cases
I unlocked the test cases and matched the output with my current output. I am getting WA for tc 1 and 2 but my output are matching with the provided outputs. What’s this ?
@17uec133,
The test cases are not in the exact order, as they are shown by judge. So the output which you say match, is corresponding to the passed test cases by your code, actually your code fails on 9th and 10th test case.
See, debugging HLD codes is a very difficult and time consuming task. But if you want, I can provide you my working implementation, and you can test your code using random test case generator.