The Military time challenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

The Military time challenge

It's failing two hidden tests, can anyone identify what the problem is? https://code.sololearn.com/c3L7w2x8oesI/?ref=app

9th Jul 2020, 4:13 PM
Olatunji Adebayo
Olatunji Adebayo - avatar
2 Answers
+ 5
Incorrect output format for the hours of 1:00 AM - 9:59 AM 1:30 AM outputs 1:30 should be 01:30
9th Jul 2020, 4:17 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
I did not take that into account. Fixed it now and accepted. Grazie.
9th Jul 2020, 4:27 PM
Olatunji Adebayo
Olatunji Adebayo - avatar