This is the solution i’ve submitted. It successfully runs on my computer and shows the correct output.But here it tells that the answer is wrong.Can anybody explain me the reason for that
Yes its because you may be missing some test cases for which your program gives a wrong answer. Try to identify that cases.
I’ve tested so many cases but for all those cases it is giving the correct output.It may happen that i’ve forgotten some exceptions.Can you help me for that?
Or you can suggest me some steps so i can go for some exceptions?