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 don't like this, sorry. Read this one year after coding it and you will only understand it using the test cases you got for this function.
Easy one, gj
I tried to use intertools in former katas and it seems it's not integred in Codewars and there's no console to install it, heh.
Great! Five year in Python and only now I find that you don't get an "index out of range" on slicing!
So lets go even further and add that 1 to arr[0], since it is also guaranteed not to be in the result.
Comprehensive list are the best. I've a similar solution. Go check.
brilliant solutuon.this guy has reached the zen of python;)
CodeWars is a relatively safe environment for running code, obviously, but relying on an eval/exec call (especially if you're leaving it bare to the user of a function) should always evoke a deep, finger-curling pain.
well,am gaining more insight. codewarriors
Brilliant.
So I think mine uses the least lines as possible then I see this and my brain dies.
damn
Amazing!!!
This comment is hidden because it contains spoiler information about the solution
I've been admiring it for like 10 minutes now lol
Loading more items...