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.
I think this kata is too easy for 4 kyu. I feel like it has to be maximum 5 kyu.
You can just 'print(text)' if you want to know what the test string is. You may not be replacing the non-alphabetic characters with whitespaces. This wasn't tested in the sample tests
This comment is hidden because it contains spoiler information about the solution
Ruby, both sample tests and on submit:
The instruction examples are very poor. The errors don't show the input so it's a guess game to understand what they precisely expect... I've spend way more time trying to understand how they want us to "cut" the words than actually work on the solution... I hope they will clarify the examples!
Clarifying that ' alone does not count as a word would be nice.
Overall, it was a fun and interesting kata.
done
https://docs.codewars.com/training/troubleshooting#print-input
you need to print your input and debug your code. your code fails examples that are in the description, e.g. for
" //wont won't won't "
you return the list["won't", "wont", " "]
. A bug in your code is not a kata issue please ask questions when you need helpIn C# version numerous sample tests work in other environments, but fail here. In one of the tests I would be told it expected "aa" but my code returned "a". I then out of curiosity fixed it so my code would return "aa", for it to then fail, telling me my response should have been "a".
print the input
I need the string of this test. It's not in the test area.
"Fixed Tests
expected [ 'a', '', 'of' ] to deeply equal [ 'a', 'of', 'on' ]"
Thank you
Lua translation!
for test "e e e e DDD ddd DdD: ddd ddd aa aA Aa, bb cc cC e e e"
Exist differents solution that are correct according to the descrption. Not only --> ["e", "ddd", "aa"]
the same for test "'a 'A 'a' a'A' a'a'!"
if we are considering the order on the answers ["'a", "a'a'", "'a'"] or ["a'a'", "'a", "'a'"] i think we can also consider to have ["a'a'", "'a'", "'a"]
This comment is hidden because it contains spoiler information about the solution
Loading more items...