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.
https://stackoverflow.com/questions/5971645/what-is-the-double-tilde-operator-in-javascript
Nevermind, I didn't see the other replies.
This solution fails when hours exceed 24.
Thanks. I was printing to console.
you didn't forgot the
return
statment, by any chance...? ;oI get an error with each of the test cases, even though my actual = expected in all cases. I ran each case one by one to be sure.
This is the output and error I get:
Basic tests
Log
[1, 1, 1, 3, 5, 9, 17, 31, 57, 105]
None should equal [1, 1, 1, 3, 5, 9, 17, 31, 57, 105]