Military time (code coach) [solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Military time (code coach) [solved]

I am trying to solve one code coach problem "Military Time". And all test seems to have passed except for Test case 3 and 5 and to make it worse those are hidden. Now I have no idea what I did wrong in that case. I have saved my code. Can anyone give me any idea where it went wrong? https://code.sololearn.com/cUGJkA123Eyw/?ref=app

1st Jun 2021, 2:38 PM
Sushil Bhandari
Sushil Bhandari - avatar
2 Answers
+ 4
Your output should contain leading 0. eg - "1:00 PM" ❌ "01:00 PM" ✅ https://www.sololearn.com/discuss/2105377/?ref=app https://www.sololearn.com/discuss/2182810/?ref=app
1st Jun 2021, 2:40 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
Hey, thank you so much 😌
1st Jun 2021, 2:53 PM
Sushil Bhandari
Sushil Bhandari - avatar