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.
'you don't have to consider things like undefined, null, NaN, negative numbers, strings and so on.'
But as the Math object has been reset you shouldnt use Math.floor in the first method Math.round
.
This comment is hidden because it contains spoiler information about the solution
dude this is baller
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
very nice
It did say max input won't exceed 359999 it does not say the function shouldn't be able to handle larger numbers
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
HH = hours, padded to 2 digits, range: 00 - 99
range = you should respect ^^
EZ
That's a given, not something you should enforce.
This does not work correctly for negative numbers.
Standard Math object:
Math.floor(-1.1) === -2
This implementation:
Math.floor(-1.1) === -1
Loading more items...