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.
Very nice pattern recognition with regular expressions formulas.
Fails
x²-1
.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.
It's the same in all languages. This isn't a version that requires performance.
Trash kata in Ruby that I could bruteforce my way in. Needs a rewrite.
Loved it! and almost made me cry after solving this!
Adjust description, please. Hard to find out what i need to do
yeah, i make an unnecessary iterate on for loop j length. should be numbers.length not numbers.length - i
Your function didn't check for all possibilities correctly. It misses more and more items as
i
increases, making your function missed the result.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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.
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.
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!
Loading more items...