+ 1

Why 2 out of 5 test cases fail?

Question:. To receive input as normal time aad convert into military time Input:1:56 PM Output:13:56 Input:12:09 AM Output:00:09 Solution link: https://code.sololearn.com/ch01RtWbySA8/?ref=app Code is fine according to me but why it is running for some input and not others Can anyone please let me know?

18th Jun 2020, 5:47 PM
Prince Yadav
Prince Yadav - avatar
4 Answers
0
It is a code coach problem It fails for 2 test cases Can anyone please let me know why it's not working?
18th Jun 2020, 5:48 PM
Prince Yadav
Prince Yadav - avatar
0
Rithea Sreng I have changed my code as you have suggested but still it is failing for 1 test case ie. Test case 3
19th Jun 2020, 3:55 AM
Prince Yadav
Prince Yadav - avatar
0
Rithea Sreng thanks for help now my code is working
19th Jun 2020, 4:11 AM
Prince Yadav
Prince Yadav - avatar