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.
May be I missed something but why nobody didn't talk about the case where there is no 'x' and 'o' in the string
Grave18 You could still minimize it with an inline || operator , just saying =)
Solving this kata I choose shorter code length.
If you think about algorythm optimization - maybe you're right.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I think my solution is better
This comment is hidden because it contains spoiler information about the solution
100 percent agree. It's definitely not ideal.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
So happy i did the same !! x)
IT WAS POSSIBLE!?
I can't understand why people consider this like a best solution.
String is handled twice (!!)
Is it correct to do things in one line? I mean, not this case, but what if I would like to see what the count of 'x' returnded? Like debugging the problem?
Loading more items...