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 comment is hidden because it contains spoiler information about the solution
Nice solution! Is there a reason for the return before dirReduc(arr)? Just curious because I tried it without the return and it also worked.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Could you explain the 60 % 60?
I am wondering if this could be just sorted.slice(-1) without the [0]?
As I know, length is for string, but is a vector, that means dinamic array of strings. I used names.size()
Not a kata issue.
Things to read:
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I think there is a typo, it should be: The round yellow light on top blinks to denote odd- (when lit) or even-numbered (when unlit) seconds (as written here: https://en.wikipedia.org/wiki/Mengenlehreuhr)
Please can you change it in the question?
Many thanks
Sorry, a bit confused, could someone explain how this code works - I don't understand how pop() works on an empty array? What exactly is being popped and pushed?
I used a Date object to convert the number of minutes to a properly formatted time string.
The Date constructor takes the number of milliseconds since the start of the epoch, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date#Parameters
Minutes to milliseconds conversion
Loading more items...