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.
This comment is hidden because it contains spoiler information about the solution
Genius!
Right, I generally struggle with 3kyu katas, but this one was quite easy ... the 1 line, 2 statement ruby solution is genius!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
They are not exactly the same. My sudoku solver passes the other kata, but this one for some reason does not pass :(
This comment is hidden because it contains spoiler information about the solution
I think random tests are broken in the Ruby version:
Random tests
Testing for qbvijarbjawewm and qarvjib
It should work with random inputs too - Expected: false, instead got: true
Testing for euyvotmmddjy and fqtieiowehtwxhuldjud
Test Passed: Value == false
Testing for pamfkfimuhxxmjku and afpm
It should work with random inputs too - Expected: false, instead got: true
qarvjib can be formed with with qbvijarbjawewm...
afpm can be formed with pamfkfimu...
I am running the Ruby version of this and I think there might be an issue with a test. My code passes all test except the [4,5] one. Which says "excepted 1 got 0):
Log
{"4,5"=>1}
Expected: 1, instead got: 0
However, we are talking about 20 as the value to arrive to... and according to a different test, [20] there should be only 1 combination: [4,5].
So following the logic of other tests: Total Combinations - Original Combination (IF it is valid, as [20] is not valid). [4,5] should be 0 and not 1.
this solution... :-D
This comment is hidden because it contains spoiler information about the solution
Same here, failing Test #9 (expects false, implementation returns true).
This comment is hidden because it contains spoiler information about the solution