I can’t figure out what is wrong with the logic of my code. it passes the sample case but fails one test case on submission.
Could you provide some test cases or suggest what is wrong?
Don't know what is wrong
Your code seems correct.
Is it giving wrong answer on submission or TLE?
Submit this code and check it all test cases pass
its giving wrong answer bhaiiya
your code passes both test cases
thankyou bhaiiya
