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 just beautiful
kata was retired
You don't enforce your constraints.
Nice
In JavaScript console.log(array) can be used for this purpose. I don't know about other languages
-Babe, today we have a dinner with my parents. Can you be normal?
-I'm always normal.
At the dinner:
( º _ º )
Same. I literally copy pasted this solution and it timed out. Maybe server works different depending on time?
F
Nice
This comment is hidden because it contains spoiler information about the solution
What if length will be set to zero on purpose? It will return array sorted to the end, but should return unsorted
He uses true division insted of integer division. So in '2 1 1' combination will be
blocks.count(2) / 2 == 0.5
blocks.count(1) / 4 == 0.5
And in sum it will count as one whole row
If length is greater it automatically means that number itself is greater too, so sorting by 1's and number it's enough
Respect
Loading more items...