+ 1
Popsicles challenge
Hello everybody. I had tried multiple codes for solve this challenge, but no one pass the 5th (hidden) test. Could you explain why. P.S. I had tried codes from answers in another discussions about this challenge, but no one pass all tests. https://code.sololearn.com/c1n2jOa62Hn0 https://code.sololearn.com/cGjKASx1RPp7 https://code.sololearn.com/cp15hUWr65em
5 Respuestas
+ 2
Try to change line 10
if (siblings <= popsicles && popsicles
from "<" to "<="
+ 2
Thanks Coding CAT. I was so close) The 1st code is really mine and I proud about it)
0
Version 2 works well.
It passed all test cases.
0
Sorry. The second code is really works (type it again). But the second code doesn't consider zero division. First code does. But what is wrong with 1st code? What the 5th Test really checks?
0
Yes, Oleg this one looks good