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.
Very pythonic, nice work!
I'm guessing this may be a stupid question, but I can't figure out how this doesn't return a number with extra numbers after the decimal point. Could any of you explain it to me please?
while n != 0
is equivalent towhile n
i fixed it
There are typos in the description. I remember currently only one "hugh" instead of "huge"
Also faster in testing. :)
Simplicity FTW :)
You guys.. LOL. This solution.
My solution doesn't pass the Test Case, while it correctly passes the Submition. Something is wrong with the Test Case, especially with printing and logging right after printing.
You're 100% right. I've misread it.
Nope, the solution is valid. The description of the problem states that the input will contain strings and non-negative integers. There's no reason to check for non-negativeness because we already know that we will receive non-negative integers.
Well, the output should be non-negative integers while in this solutions there is no checking whether it is non-negative.
Oh I see, what you're saying. I'll update the test to make sure the input data is changed.
matrix = [[1, 2], [3, 4]]
rotateMatrix(matrix)
print matrix
this is how you should check whether rotation has been done in place (meaning: changing input data)
Can you elaborate what you mean by "while even without change of input value (matrix value), the output is marked as correct"? I don't know how I would check that the user only modified the existing matrix instead of creating a new one. The way I wrote this kata assumes a bit of an honor code.
Loading more items...