Code coach problems | Sololearn: Learn to code for FREE!

+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 ?

7/26/2020 12:29:46 PM

BRYAND CHE

8 Answers

New Answer

+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

+5

Think about the logic of your code, especially the output must match the requirements.

+5

In which problem are you facing it. Also post your code so that we can help.

+3

Thanks to everyone who contributed, so grateful. Finally got it. https://code.sololearn.com/ckZH3uKrs8eK/?ref=app

+2

Military time, please check the code https://code.sololearn.com/ckZH3uKrs8eK/?ref=app

+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

+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

+2

Okay I will do that