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.
Woah. First time realizing you can 2D slice if you use np.
I'm learning a lot here in Codewars.
I was inspired by this and came up with another interesting, short solution using numpy's rot90: https://www.codewars.com/kata/reviews/5412ed87648162f1e60000c4/groups/6399b331f70c1e000184df8f
You can very easily turn it into pure python by replacing the last line with a function that goes through the return value in reverse order.
it doesn't say not to use it
this solution use numpy which is a cheating
Wow !
Very impressive solution! Took me a while to understand how it works but when it clicked i was amazed by the simple but effective idea. Also, very good use of numpy arrays.
awesome