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.
Minor nitpick on the description-- What we are looking for is the number of permutations or unique sequences, not combinations.
Nitpicking aside, I really enjoyed the kata! Easy to understand, not as easy to solve.
New R translation, awaiting review!
The Description markdown works fine inside the edit page but it's all messed up on the Kumite summary page. Which should I believe? I could always leave it as-is with the simple code block, but the existing example could be confusing to a new programmer with R as a first language.
I'd say it's appropriate based on the Wiki:
This one meets the second and potentially the first bullet points. I agree that the language of the setup is less than clear. For example using "s1" as an example input but "a1" as the predefined function input could be needlessly confusing.
edit: on a second look, I now realize that the problem with the description is "call this x and call this y and here's a formula relating the two". Yeah, that's obnoxious. I've spent enough time in math books that I didn't really notice, but for a beginner that's a very unintuitive way to describe what should be an intuitive task.
I have a pending translation for R if anyone wants to check it out and maybe approve. I think technically I can approve it myself but it's my first translation... I'd rather have another set of eyes.
LINK
Basically cloned the Python version and added some random tests.
I really liked this kata! 2 related thoughts:
1.) One of my attempts was rejected because I did not put a pause between consecutive 1 presses. My reasoning is, since the 1 key only produces a single character, a pause should be unnecessary. I don't recall whether this was actually the case with my old flip phone though.
2.) The * and # characters do not appear to be included in the random test cases. The kata's solution code puts pauses between these as well, so I may need to amend my answer if the tests are updated to include these.