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 is because the "What is this?" answer takes precedence over the "Not a dissyllable." answer.
However, that's not clear from the Kata description, because strings like
-!,
match both error types and it doesn't specify the one to return in that situation.I've updated the description to be clearer.
It's totally fine - looks like a good solution to me. Why wouldn't it be allowed?
Under the
Not Poetry
section,-!,
and#x3
should fail asNot a dissyllable
, but instead are expected to fail asWhat is this?
Hi! How do you think, my solution is correct? Or this solution not allowed?
Pls answer)))
needs random tests...
Thanks for your feedback! The description has been modified.
Clarify in the description, based on my solution :
If it's not a dyssillable, (either it's too long, or too short), return "Not a dissyllable."
If the given string includes characters that are not prosodic symbols, return "What is this?"
In these cases, it appears the second one is checked first.
"The RegEx is strong with this one.." Well done!
You are a switch expert! ;)
This comment is hidden because it contains spoiler information about the solution
For Kotlin
input
type should be nullable (Array<Int>?
instead ofArray<Int>
), otherwise tests do not compileA good introduction to pointers in C!
I love creative katas like this one!
Oh right, thanks:!
Loading more items...