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'm just now seeing this! I was very new to ruby and programming haha. I flinched and then smiled looking at this code just now ;)
Wow this is hard to read! Your brain is better than mine!
I don't see how this would be better than recursion and how you can put the characters in the middle of the string, if you ask me, but ok :)
Found a small problem in the template solution. Fixed!
Fixed!
My failing tests are expecting a joined string of the possibilities.
e.g. Testing for "?10011000"
Expected: "010011000110011000",
instead got: ["010011000", "110011000"]
For ruby..
How would this work if the number has a zero in it, e.g. "404" => 44
Ok, thanks
I'm not sure what your question is. It's specified clearly in the description it's the first character that you are looking for. Any unicode character counts. (Though, technically, I suppose the term codepoint would be more accurate, but I think enough people understand what a character is to get it.)
I keep get this error -> Expected: ",", instead got: ""
Why would the test expect a non-word character?