Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    New R translation, awaiting review!

  • Custom User Avatar

    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.

  • Custom User Avatar

    I'd say it's appropriate based on the Wiki:

    7 kyu kata represent a beginner programming level. At this level the kata will generally challenge users on their core language and API reference knowledge. Tasks such as:

    Iterating arrays and returning a subset of values

    Basic data type manipulations

    Basic functional or object-oriented concepts

    Basic Regular Expressions

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.