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.
length
is property, so we don't need to call it like function with()
are you returning this?
Yes it's true, but this is only for this kata needs if I understand it right. Couldn't the test case for "year -300" be fixed from "365 days" to "366 days"(so the instructions) to match the real life(and exclude weird exceptions), so the code counting leap years pass the tests?
Should't year -300 have 366 days in test cases? It's definitely a leap year like years 300, -304 and -296.