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.
From what I can tell, none of the translations use fixed-length arrays or tuples, and none of the reference solutions make any assumptions of outer/inner array length. The phrasing in the description may be brief, but it is sufficiently language-agnostic and it is very clear what is being asked for.
Regarding the test inputs all being 3x3, why not? The kata description makes no statements regarding input size other than the single example earthquake which is 3x3. Also, if a particular language's tests show the input upon failure (which they really should for a 7 kyu), having a smaller array will make it easier to debug your failing solution.
Based on the author's solution, there seems to be an implicit assumption that whatever the size of the outer array, is also the size of each of the inner arrays. If this is the case, it needs to be explictized (and will probably invalidate some answers). All the current tests hardcode a length of 3, and the random tests of the Python translation hardcode the inner array size as 3. The description should be cleaned up to sort this out, as it makes adapting this Kata awkward into languages that support tuples or compile-time sized arrays because each person who adapts this Kata seems to make a different set of assumptions.
Haskell fork
Not a kata issue! Your code has incorrect spacing count when encountered character is a space
Ruby should be updated to v3 (new test framework) + needs random tests
Approved, although sample tests should include the example in the description.
modified your fork a bit
C# => handled
in what language, plz?
This comment is hidden because it contains spoiler information about the solution
Python fork
Actually a complete rework of the actual test, please review carefully :)
nice kata
It seems logical to transfer such tests with additional spaces to fixed tests.
Otherwise it's possible (at least in Python) to randomly solve the kata with partial solution that does not preserve additional spaces.
Excellent kata, became 1111 my solved kata. I had to think about it, but it was fun.
Loading more items...