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 not a 7kyu kata...
So clever. good luck!
That one is crazy gg
This comment is hidden because it contains spoiler information about the solution
good job
I realized that I included
for x in range(0,len(numbers)
within the 1-line return.But still why?
Great solution!
I attempted the same 1-lines return but within (CODE) Parenthesis.
It didn't take.
Can you please explain to me why it works without encapsulating in parenthesis?
I am curious.
Thankyou
Best solution of all posted
how evaluation go once for this ?
I'm so fucking stupid, True if / else False wasn't even necessary.
Huh thank you for that I also made his mistake
That's a good one, I wrote sorted(arr[0]) and it didn't work so I wrote another code. Yours just made some clarity. I had the right idea but wrong syntax.
heapq is much more performant especially on larger stuff although modern computing power doesn't require it here though.
Adam, it's time for you to come back and retry this kata!
The whole point here is that it's not a list comprehension.
If it were a list comprehension, then the whole list would be built, and
all
would be called on it afterwards. But it's a generator comprehension, which produces elements lazily, one by one, as they are iterated over.Loading more items...