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.
Simple but really efficient. Normally, I had to go through all the (n(n+1)/2) possibilities but this code only go through n times loop. Bravo.
Thanks for your reply. And now it seems to work if I add "+1" to the second loop.
The tests are ok, it's a problem with your code:
Print the input to check why your code fails. Also, remember to mark you post as having spolier content.
This comment is hidden because it contains spoiler information about the solution
It's in bold in the description.
This kata doesn't consider leap years. For some cases, the number of seconds are different from when you search on google.