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 thought for hours, made notes, created an Excel sheet, even then I had to see another problem to come up with the idea of partitioning the sections into quadrants. My solution was 50 lines long. And this guy is doing it in one line. :(
This comment is hidden because it contains spoiler information about the solution
It should be
var timesFive = function (x) { var five = 5; return function (a) { return five * x; }(x); };
. The test case is incorrect.How is this even accepted!
What is happening here?
d > 0 && (dur += (dur ? ', ' : '') + d + ' ' + b[0] + (d > 1 ? 's' : ''));
I get the rows and columns. But the grids. Oh man. Can you explain what're you doing with the variable "p" in the second to last line?