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.
What's goig on here?
You sould return an empty array inside an array.
The answer should be an array with an empty array on it for the empty matrix
An array with an empty array is perfectly reasanoble to be able to represent the state of a matrix with rows and columns
A matrix is a rectangular array of numbers represented in this case with two arrays since ruby doesn't support the a "matrix" type natively
Matrix are conposed by two elements rows and columns
Nope, don't worry about weird cases, but [[]] it's the empy nxn though.
Hey,
It's not an issue, it's a feature :D.
That's the way it suppose to be, look at the image http://www.haan.lu/files/2513/8347/2456/snail.png , it suppose to follow an "snail" pattern, after 21, it goes up with the 16, and continues up with 11 and 6, then continue to the right, util it reaches 9.
Hope it helps.
I'm glad you had so much fun!!
Done!
I think it's really easy on ruby, I think you should disable
permutation
method.I just got this error
Could somebody help me?
There have been already a discussion about that, it's a good point, however
[]
is not eather a 0x0 matrix, it's just an empty array, so I think, for this exersice, we could think the[[]]
as an 0x0 matrix. I hove you enjoy solving this kata.Sorry but I got to ask, What are you doing there?
hahaha, rewrite it!
Loading more items...