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.
This comment is hidden because it contains spoiler information about the solution
its good to note this would not work for a string with non-numeric characters.
The kyu is given by a moderator, not by the author.
Great Kata. Yet I found this kata alot easier from other katas of yours in 7kyu. Is there a moderator to evaluate kata difficulty, or it is your decision?
This comment is hidden because it contains spoiler information about the solution
Yes, of course, but most experienced C programmers find it easier to read without the extra ?: operator around the return value.
Right, though does the same!
return (sum>0)? 1 : 0 ;
There is no need for the paranthesis around the expression, it just adds noise.
sum > 0 already has the value 1 or 0, so there is no need to convert it again, just return it:
return sum > 0;
This comment is hidden because it contains spoiler information about the solution
You can call out code or a command with backticks ` before and after your code, also mark your comment as a spoiler if it contains code.
I agree that I should have specified that an empty array is equal to 0 in this problem. I have added it to the notes section of the description. Thanks for the feedback.
It is just a comment on the Kata and its relation to what can occur on the job, as it were. As I said, this is a game. thank you for playing.
I really couldn't figure out the appropriate label for this comment or what it aims for! What are you trying to theorize here?
I apparently misinterpretted the instructions, i was solving a different problem. Thanks anyway
Loading more items...