Error Correction



It is failing for some of the test cases.But i tried my best to figured out but it did not work well.Can Anybody gives the test cases where it is going to fail?

[code]
Last edited on
So here is the approach:

Last edited on
Same again.
http://www.cplusplus.com/forum/beginner/252024/

But you don't even read T (the number of test cases) properly.

Topic archived. No new replies allowed.