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.
hey could you please explain me why did you transform the time of the day in millisceconds? Thanks!
@rowcased
From my knowlage leaving magic numbers is a bad habit/practise. My descriptive name of const isnt the best, maybe I should name it better, but still this is not a "magic" number. Maybe I'am wrong, correct me if I'am.
honest question: does it make it any less magic if you assign it as a const var as you did in your solution?
86400000 - magic number ;/
That's the amount of miliseconds in a day.
What is the significance of 86400000?
And while you're at it, specify that there will always be exactly one word with (a) capital letter(s) in it.
There's nothing wrong with specifying there will be no odd or edge cases; it helps focus on the actual task. Leaving it dangling makes some people ( me ) worry there will be.
Use spoiler flag next time. Your code doesn't pass all the sample tests,
arr[0]
is a whole word and you're comparing it against a string of length 1 there.This comment is hidden because it contains spoiler information about the solution