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
whoops
Last line of the kata:
The array will never be empty.
Also 8th kyu kata are introductory, so error handling would be too advanced for this kata.
Doesn't handle:
Nice! I wanted to do something like that but didn't know how!
That was a false intuition I had at that time because... this approach passed the tests (which are pretty insufficient). I've been proved wrong about that with other problems.
@Blind4Basics I am also interested in why checking one subsquares is enough as well.
Looks like a good example of how to use map.
@Blind4Basics: any explanation why checking only one subsquare is enough ?
More precisely,
//
is always floor division.In Python 2,
/
is contextual, and when used withint
it is floor division, when used withfloat
it is true division.In Python 3, / is always true division.
In Python 3
//
is floor division while/
is true division. In Python 2, both are floor divisionWhat is the diffeence between / and //?
Like the double-slash for clarity.
lol
Oh, I see. Thank you for your answers!
Loading more items...