Ad
  • Custom User Avatar

    Very nice pattern recognition with regular expressions formulas.

  • Custom User Avatar
  • Default User Avatar

    whole numbers, integers, and decimals, floats, are different kinds of numerical data. There is no need to worry about floats because that isnt the data being tested.

  • Custom User Avatar

    It's the same in all languages. This isn't a version that requires performance.

  • Custom User Avatar

    Trash kata in Ruby that I could bruteforce my way in. Needs a rewrite.

  • Default User Avatar

    Loved it! and almost made me cry after solving this!

  • Default User Avatar

    Adjust description, please. Hard to find out what i need to do

  • Custom User Avatar

    yeah, i make an unnecessary iterate on for loop j length. should be numbers.length not numbers.length - i

  • Custom User Avatar

    Your function didn't check for all possibilities correctly. It misses more and more items as i increases, making your function missed the result.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    To be fair, wthit56's katas are generally like this. Fortunately I grinded all of them a long time ago, so I don't have to deal with these anymore.

  • Custom User Avatar

    This kata is fit for retirement. Bad error output, hidden specs (which unicode chars need to be escaped?), ambiguous specs (how on earth is the replacer suppose to behave?). This is one of the few kata's that makes me mad.

  • Default User Avatar

    I agree that the description is not very clear. It took me a little while to make sense of it, but the task is:

    You will receive an array of strings. Each string will contain either the word "automatik" or the word "mechanik", though not both. Each string may also contain "robots" represented by the default string "d[(0)(0)]b". The robots may have different appearances, however. The first and last part of the robot (the "legs"), which are "d" and "b" in the default robot, can be also be any other letter of the alphabet, both lowercase or uppercase. The other parts of the "body" of the robot, which are represented by square brackets ("[" and "]") and parentheses ("(" and ")") can be also be represented by any of the following symbols: |};&#[]/><()* . The "eyes", however, are always represented by zeros. You have to count the number of robots that appear in each string with the word "automatik" and the number of robots that appear in strings with the word "mechanik" and return the counts as an array of the form ["n robots functioning automatik", "m robots dancing mechanik"], where n and m represent the respective robot counts.

    I hope that clears this up!

  • Custom User Avatar
    And, of course, no one drew anything :D
  • Loading more items...