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.
I think this is a great solution !
I personally use CodeWars to practice my thinking, not "using libraries which does my job". While in office I would search for solution in external libraries but it does not have any point in here
me too
nice and clever solution, but try not to use numpy (impossible)
Clever solution!!!👌
wow u re genius
i'm speechless
Creating an array for every iteration is not best practices.
This will be inefficient with large arrays
Creative, but low performance.
Use it if you want. It's just a tool among others.
As for what would make it best practices or not... Here, it's certainly not, since it makes the algorithm O(N²) (and yet, it might very well be faster than a proper linear solution, unless N grows very large... x) )
Wow, clever solutions!
I was trying to do something like this initially with multiple embedded cast statements. Cool use of the implied data types by multiplying hits *1.0!
Wow. It remains to implement the rotation of arrays in the vanilla Python
i really like solutions that utilize external libraries, it teaches me many functions external libraries have that i could have applied for my solution
Loading more items...