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.
In my opinion the min and max functions are overkill. But interesting solution.
Approved
Fixed naming
I havent noticed that it was already approved.
Let me fork it then
It was already approved, did you forget to fork?
Fixed naming to camelCase
Fixed, thanks for spotting. I got focused too much on other things and missed this part.
camelCase?
Updated fork:
Published a slightly improved fork, with random tests, language-specific example, and slightly improved description.
oh, right... I didn't read the next parts... x)
But that means that first line of the description should be changed too. It's somewhat misleading.
I think that test should be added.
But some of the tests are done with matrix = [[1,2,3], [4,5,6]] so we cannot suppose that our input is mandatorily a square matrix !
Because if it was the case, then testing len(matrix) != len(matrix[0]) won't be necessary.
out of requirements ;)
Hello,
I think it doesn't work just testing the first element of the matrix. For example, your function will return something if your input is [[1,2,3], [4,5], [6, 7, 8]] whereas this is not a matrix.