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.
Was thinking of how best to do it in one line, cool
This comment is hidden because it contains spoiler information about the solution
The go version test cases require a leading space in the expected output of the random tests; looks like a bug in the test case to me.
Shame this is O(NlogN) unless the compiler is cleverer than I'd expect.
Is there any guarantee that the compiler won't build up a list of all the populations up to p in memory?
You are right, I left them in so a reader can see where the numbers come from (24 * 60 * 60 rathr than 86400).
Pretty close to mine. You don't need to repeat all the 60s in the times definition.
This comment is hidden because it contains spoiler information about the solution