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.
Funny one of the series.
lol
That's brilliant! I would have never thought of that myself!
This comment is hidden because it contains spoiler information about the solution
This is amazing. Is it in Python?
dope!, this was my first thought but it felt too easy and I doubted mysefl.
Month should start from
0
, not1
OP solved it, closing
Description should be language-agnostic (regarding the examples
Approved by author
I have been solving this problem for two days. I've tried a lot of options. And yes! It started working in the development environment. And here (For input string: "") Added even a null exception and NOTHING! What did I leave out or is it not a complete description of what should be when entering an empty string.
Thanks for the fork, I apporved it. I removed the "1400" test case as 1400 < 1583. BR, suic
Python, possibly others
A solution such as this one will sometimes pass the kata even though incorrect.
Tests should include years divisible by 100, especially in this case years that produce an odd number when floor div by 100.
See the fork just posted below for a fix for Python.
Python Fork
Includes fixed tests and random tests that are guaranteed to produce years that fail a "sometimes pass solution" such as this one.
Loading more items...