Ad
  • Default User Avatar

    'alr approved some time ago'

  • 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

    Thank you!
    I am sorry, want just know why I am able to pass all your tests besides your sample.

  • Default User Avatar

    1- It is a question not an issue.
    2- 1165 guys passed the Java kata (see at the top of the page), if there were errors somebody would have seen them.
    3- There are more fixed tests when you "SUBMIT" than in sample tests.
    4- I tried a few solutions and all was fine.
    5- You code could be wrong:-(

  • Custom User Avatar

    I do not know what happanes but when I run your sample tests it pases it, but when I run ussual testes it passes all the random tessets and fails at your sample test. ( 0! error )
    It works in Net Beans.
    [Java]

  • Custom User Avatar

    Yeah that What I mean Description is needlessly complex, As I said the task it self was stright forward after you will undestant what it wants from you.

    I would edit my orginal comment to make it more clear but it seems I can't.

  • 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.