Code Coach Military Time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Code Coach Military Time

I have written a code for Code Coach Military Time and I don't know why Testcase 3 & 5 is not passing. Where am I wrong? Here's my code https://code.sololearn.com/c8caxL78osUf/?ref=app

10th Mar 2020, 4:01 AM
Chaniza Van Sinda
Chaniza Van Sinda - avatar
3 Answers
+ 4
Chaniza Van Sinda, the problem still exist. You have only resolved for 12:00 AM but for time like 1:30 AM your code is still displaying 1:30 instead of 01:30 Here is a simple fix 👇 https://code.sololearn.com/ctyf7MjK51R8/?ref=app
11th Mar 2020, 2:45 AM
Arsenic
Arsenic - avatar
+ 3
Chaniza Van Sinda 12:00 AM should be converted into 00:00 but your code is converting it to 0:00. question states that that output should be in the format XX:XX
10th Mar 2020, 4:16 AM
Arsenic
Arsenic - avatar
+ 1
Thank you Arsenic. I changed the code a bit and the testcases are still not passing
10th Mar 2020, 4:35 PM
Chaniza Van Sinda
Chaniza Van Sinda - avatar