Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
My code passed the testing phases but is showing up nonesense characters(like a square with cross in it) after some characters in my output when I attempt it. The characters aren't displaying in this comment so I'll just make a bracket at places that those strange characters appear.
Error Message :
Incorrect answer for input: "fhGdEgEaBdgeehehGghbheghGagcab"
Expected: "fh Gd Eg Ea Bdgeeheh Gghbhegh Gagcab"
Actual: "fh Gd() Eg() Ea() Bdgeeheh Gghbhegh Gagcab"
My code is passing some tests but a couple of them are kicking back. Logs and test below, I can't make sense of it!
I think the test value is incorrect in this case?
Log
Question 1:
Wrong answer, -1 point
Score is now -1
Question 2:
blank answer, 0 points
Score is now -1
Question 3:
blank answer, 0 points
Score is now -1
Question 4:
Wrong answer, -1 point
Score is now -2
total points is -2
Test Failed
Should return 0 with ["b", "d", "a", "c"] and ["a", "", "", "b"]
Expected: 0
But was: -2
Thank you guys! Appreciate it!
No you don't. It depends on how kata is authored, and one possibility is to print inputs from your solution.
I think you'd need to subscribe for a premium account
ternary
(condition) ? (if true, do this) : (otherwise, do this)
This is the ternary operator.
Hello! I'm learning myself how to program in C. Can anyone explain me what the code below means? I've passed the test but I found out that many people use this statement in solutions and I don't know what it means. Thanks in advance!
return score > 0 ? score : 0;