sir if i run the code it says success and then when i submit my code it says teast case wrong answer and all test case fails
Sir if i run the code it says success and then when i submit my code it says teast case wrong answer and all test case fails
It happens because your code only works at the sample input given in question, but it fails on some other sample test cases, whose condition needs to be included in your code. Try optimizing your code so as to hit every corner conditions you can think of
1 Like