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.
It would be beneficial if the kata description included a link to or description of the Potato paradox.
Hands down one of the worst Katas on here. Don't expect an interesting coding question to sharpen your skills. Just a trivial math problem. Move on to another problem :)
That fact that approval is at 66% is pretty telling, too.
Definitely. This should be a 6 Kyu Kata.
Looks like someone had a bad day at work. Don't take it personally. Let the guy raise another 50 issues. Who cares.
If the Kata author requires the
RomanHelper
to be a class, s/he should really provide a template.Thanks for your response! When debugging my solution I noticed along the way that e.g
isinstance(True, int) == True
which I didn't know before. My fix (at least I assume it is one) was to replaceisinstance()
withtype()
. I went through my code again and unfortunately cannot see any place where a bug like this might happen...Read the issue two threads below. I'd bet you got caught by the int/bool problem.
edit: mmh, it has a spoiler flag. Well, begin with being extra careful about the above... And don't forget to close the issue if that's actually that.
After another night of trying to get the random tests to pass I just cannot come to another conclusion than that there must be a weird, random error in those tests. I usually pass about 30 or so of them. Then there is a test that says
Should fail
- but my logging shows that all attributes in all fields are configured in alegal
i.e. validation-passing way. How should validation e.g. fail, if all fields haveNone
values and are allowed to beblank
? That's just not possible - at least that's how it looks to me.Same for me. I passed all tests a few hours ago - except for the
EmailField
random tests. It is quite annoying not being able to complete this Kata just because its requirements are pooly specified. Please give a more detailed description of how to validate emails!Nice solution!
I strongly agree. I had to make 3 different attempts -- each with a different set of assumptions of what the author might ask me to do -- before I was able to complete this Kata.
Agreed. Doing it in
C
is actually not that easy, too. The string handling isn't super involved but definitely worth more than 8 kyu. It is so unfortunate that it isn't possible to have different difficulty rankings for different languages. Sometimes the tooling makes all the difference between a Kata being super easy or actually quite hard.Not sure why you got down-votes for this. If I understand CodeWars Kyu system correctly, this is a much more trivial problem than the ranking suggests. You're just pointing that out.
This comment is hidden because it contains spoiler information about the solution
So true!
Loading more items...