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 is my first feedback. Awesome solution!
It's very ineffective :(
I knew the moment I completed my code, that someone would have a one-liner posted.
Idk how usable this one-liner is, but it works so G-freaking-G man. Hats off!
Every time i complete a high level kata, i always feel that this one for sure, there is no way a person can do it in just one line and every time i am left dumbfounded by what i see.
It was especially true for this problem but here we go again!!!
You know what, you just made me feel dumb as hell.
oh well,that's way easier than i did. Good job!
@Qin: This was submitted in Python2, where
zip
returned alist
, not azip
object. It's now gone from CW, but it still stands.What? The "<spoiler>" tag didn't work! @Chrono79!
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
Amazing really Amazing.Keep going
Thanks
@alexmitelman It will fail on enormous matrices and even then, it is easy to call
sys.setrecursionlimit
.It says
Given an n x n array
.And I have no idea what answer you expect for your array.
Nice solution, but doesn't work with array like this:
array = [[1, 2, 3],
[10, 11, 12, 4],
[9, 15, 14, 13, 5],
[8, 7, 6]]
Perhaps such ugly arrays weren't implied, but anyway they still can be "snailed" :-)
Loading more items...