+ 1

Code coach problems

If you attempt to solve a code coach problem, then pass the visible first 2 ones but fail the remaining hidden ones. How do you target this problem ?

26th Jul 2020, 12:29 PM
BRYAND CHE
BRYAND CHE - avatar
8 Antworten
+ 8
you have to think about all the different outside cases. In the real world, you need to make sure you plan for certain extreme events even though they may rarely occur
26th Jul 2020, 12:38 PM
Slick
Slick - avatar
+ 5
Think about the logic of your code, especially the output must match the requirements.
26th Jul 2020, 12:37 PM
Gordon
Gordon - avatar
+ 5
In which problem are you facing it. Also post your code so that we can help.
26th Jul 2020, 12:46 PM
kannan
kannan - avatar
+ 3
Thanks to everyone who contributed, so grateful. Finally got it. https://code.sololearn.com/ckZH3uKrs8eK/?ref=app
26th Jul 2020, 8:46 PM
BRYAND CHE
BRYAND CHE - avatar
+ 2
Military time, please check the code https://code.sololearn.com/ckZH3uKrs8eK/?ref=app
26th Jul 2020, 1:05 PM
BRYAND CHE
BRYAND CHE - avatar
+ 2
whwn i enter: 2:43 AM the output is: 2:43 #it should be 02:43 XX:XX <---needs to be in that form
26th Jul 2020, 1:09 PM
Slick
Slick - avatar
+ 2
Your code generates error for inputs from 12:00 PM to 12:59 PM Also for x:xx PM it generates error But for xx:xx PM it works fine Take a look on how you handled those inputs
26th Jul 2020, 2:23 PM
kannan
kannan - avatar
+ 2
Okay I will do that
26th Jul 2020, 2:30 PM
BRYAND CHE
BRYAND CHE - avatar