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.
Unpublishing due to low satisfaction and many unresolved issues.
What is the expected result if dob is a leap day?
Ruby:
2200-05-16
is considered not yet born, but it is before2200-06-15
and so should've been born.C++ has an error in tests:
Also sample tests are wrong. They assume a current date of 2200-01-01.
with
tests are:
Sounds correct. What does the test expect for these inputs?
Trying C++ and having a concern: if I was born in
"2002-01-01"
and the date (const TIME) is"2200-06-15"
, then my next birthday should be on"2201-01-01"
???This comment is hidden because it contains spoiler information about the solution
You have actually preempted my next question: Can there be thousands separators to the right of a decimal separator? Apparently not.
This seems like a bit of a cop-out, but of course otherwise there is just no way of knowing how to interpret
123.456,789
.Yes, you're right! I will add that too. Thank you so much for your help!
Yeah, this is better.
Next problem: how do I know that
123,456
and123.456
are both123 456 e -3
and not123 456 e 0
? Shouldn't you specify that there can only be thousands separators if there is a decimal separator?I admit that was a little bit of a generalism. I believe I've made it sound better now!
Citation needed.
Or just take out this ridiculous statement ( programming languages can and do use whatever they specify ), and specify what your kata uses.
Note that JavaScript in recent versions ( optionally ) uses
_
as a thousands separator ( there is a long history for that in other languages, but this one sprang to mind first ).Fixed! Thanks for reporting the issue.
I'm sorry, could you please elaborate? The task is to modify the input given and convert it to a Numeric type, but I believe I don't understand you.
Loading more items...