Help and comments about the validation of my code for the code coach challenge "military time"

Hello, https://code.sololearn.com/ceqRs I wrote this code, i think it's correct, because working on the code plateform, but i can't validate the two last case tests.. If it's possible to help me and having some advices to progress? Thanks you

1/19/2020 11:15:59 PM


2 Answers

New Answer


If the code that you have open for viewing, it translates incorrectly 4:30 AM (not 04:30 AM) 4:30 PM ...


Ok thanks for your answer, i presume that is a problem with the range of the substr() function in my code.. I will change this part.