+ 1

Code coach analyser is wrong?

I solved the military time problem in code coach, but the analyser seems to run my code wrongly. When i run the code normally in the editor, it runs fine. Has anyone encountered this problem before?. Here's a link to my code: https://code.sololearn.com/c7CVNjDHfF77/?ref=app

28th Mar 2021, 8:59 PM
Charles Xstorm Ukadike
Charles Xstorm Ukadike - avatar
5 Answers
+ 1
Jayakrishna🇼🇳 It's all correct. I passed the coach. Thanks for the feedback 👍
28th Mar 2021, 10:31 PM
Charles Xstorm Ukadike
Charles Xstorm Ukadike - avatar
0
Is it failing 1 test case? Are giving error for all?
28th Mar 2021, 9:20 PM
Jayakrishna 🇼🇳
0
Jayakrishna🇼🇳 It's failing 2 cases, one is locked but the other unlocked one isn't correct in its analysis.
28th Mar 2021, 9:23 PM
Charles Xstorm Ukadike
Charles Xstorm Ukadike - avatar
0
Its failing test cases : for 12:00 AM (output need is 00:00) 1:00 PM (output need is 13:00) Its not working for PM time Charles Ukadike You are using "pm" in small case but input is in upper case "PM"
28th Mar 2021, 9:27 PM
Jayakrishna 🇼🇳
0
Jayakrishna🇼🇳 Yeah, i think it's an issue of case letters and the 12:00 Am... I'll correct that asap.
28th Mar 2021, 9:31 PM
Charles Xstorm Ukadike
Charles Xstorm Ukadike - avatar