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.
Approved by someone
TypeError: 'int' object is not iterable ???
Ruby translation
I brute forced it
exactly like yours... (but what is even N, in there??)
meh, O(n^2)
I broke my head trying to wrap it around this generator. To understand it easier consider writing it like this:
[number for subarray in array for number in subarray]
Still not easy though :|
Hey I learned this today too! 3 years later though...
This comment is hidden because it contains spoiler information about the solution
I wated to do this, but I didn't know how to do a double for in a single line, cool
The brackets [] are not needed inside sorted. sorted can accept a generator)
This comment is hidden because it contains spoiler information about the solution
I can't even understand what's going on here... Anyone care to elaborate?