The logic is simple. Just coding need some time.
Rather than lots people say 6kyu. I would rank for 6.5 or 6.6 kyu.
6.5 or 6.6 kyu
This is a great kata. I liked it very much. But I think the rank of this kata is lower than it's actual state. 7kyu kata usually solved by couple lines of code, but here I have to wrote 3 methods. I think it's 5kyu.
If the task will only find x and y coordinates of a cat, it will be 7kyu kata.
About this issue. I explored Random test of n = 176, in this case 62 values are skipped.
And all of them are in 10*x + 3*y format.
10*x + 3*y
Here is a listing of skipped values:https://goo.gl/zqf5JC
@bestwebua Please give your's program output for n == 22 or n == 25.
+1. I agree Ruby random test dost not works correctly and skip values:
Here is a couple of skipped values:
"62 == 0 + 10 + 10 + 10 + 10 + 10 + 3 + 3 + 3 + 3"
"127 == 0 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 3 + 3 + 3 + 3 + 3 + 3 + 3 + 3 + 3"
I had a lot of fun solving this kata. It literally descover different shades during working process. Thank you.
Let's see how many more remark about this; worst case, I will edit the translation...
fix: kata :) # not kapa
Let's live it for now, although in general I would prefer to have users figure it out; I would assume @joehenriod was not too familiar with bitwise operators, the rest seems pretty plain to me - but let me know if there are parts to fix in terms of grammar or ambiguity.
See, I told you ;-)
Super kapa. But Initial Solution dose not have full list of arguments, there is no optional parameter.
This comment is hidden because it contains spoiler information about the solution
I got where is the problem. The second example has even size of array, not odd, like in the description.