Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @java_coffee_cup,validated by @Rafarafa,@Eulero314 and @Stef_3.
If you have any issues, feel free to ping them.
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @java_coffee_cup,validated by @Rafarafa,@Eulero314 and @Stef_3.
If you have any issues, feel free to ping them.
Hey, I’m having trouble understanding one of the examples I failed on:
Here’s the group printed as it was received:
-9 -2 2 -6 -5 5 6 9
I responded “2” but it turns out I should have selected -1. Can someone help me understand why this is an invalid answer? @java_coffee_cup
If it helps, this is under “Basic validator”. My code passes all other test cases. (Well, except the two after this one, as it’s the 98th test case and I can’t check those)
Nevermind! I messed up in my debug checking, it’s the NEXT one that failed and it’s obvious. Cheers on a great puzzle!
Yes it was the next line that caused failure. Good to know you found it out by yourself.
Okay, I gotta ask, how’d you know???
Seems like a really rare edge case that triggered due to an oversight I made on examining the outer doll.
I guessed CG was printing out the last line it can print before an error was found. If that line did not trigger an error, the next line could be.