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.
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
The idea for this one is good and it is a good lesson for really understanding requirements and how some requirements are lacking. If you have done any professional coding you know what I am talking about. I wouldn't expect this from someone who has had this done in the 'real' world. The creator has said that people have completed it so that should be good enough instead of offering better examples that one would be able to ask in a professional environment. But hey, this is a game. It was a good puzzle, even if the hard part was someone's ego.
Loading more items...