Ad
  • Custom User Avatar

    Great, classic kata here.

    I suggest you space out the example cases in the description to allow for greater readability. For me, it appeared as one long string with no spaces. How about line breaks between each example, like this?


    Examples:
    n = 0 -> 2^0 -> [1]
    n = 1 -> 2^0, 2^1 -> [1,2]
    n = 2 -> 2^0, 2^1, 2^2 -> [1,2,4]

  • Custom User Avatar

    It does -- my solution uses that convention. Perhaps there is something else wrong with what you tried?

  • Custom User Avatar

    This was a great kata, and while my naive solution worked, I learned about a better approach afterward (isn't that always the way?).

    There are a couple of typos in the description of this kata that I thought I'd point out:

    In this line, "In order to prove it's success..." there should be no apostrophe in the word "its," as it is used to indicate possession, as opposed to the contraction "it's," which stands for "it is."

    Also, in the second line, "You must check within string (s) to fid all of the mating pairs..." the word "find" is misspelled as "fid."

    Best,
    -K

  • Custom User Avatar

    Is there a process by which users can help contribute to the quality of a given kata by correcting spelling and grammar mistakes?

    There are many kata that are excellently crafted, save for word usage that does not conform to standard English patterns. It would be quite beneficial -- especially for new programmers -- to spell these out as clearly as possible, to avoid confusion.