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.
In Rust, you don't need to insert every pair into the map manually. Just use:
Pretty kata. But I would probably rate this ont as 5 kyu, not 6. And also please consider adding OOP tag to this one
Updates tests to latest PHP setup, adds missing
<?phpdirectives.Nice challenge!
Enabled Ruby 3.0 + RSpec
This could be fun, but 7 is harsh for how tedious it is... why are months text and different format on top? Without htat my only gripe would be about the dynamic allocation in C, but it is too tedious for 7. Which is a shame, because overall it is a really nise puzzle to solve.
C#:
static, as the class holds no state. Since this is a breaking change, might as well:namespace CodeWarsfixed, and added a return value so that it compiles
as said by udovr above,
Array(6).fill(Array(7))will set every row of the matrix with the same reference to a singleArray(7)object, so mutating one row will mutate the others as well. The canonical idiom to create a matrix while avoiding this problem is viaArray.from():seems to be OK, too
ruby is fine. how is JS?
done
A good place to ask for help is in the # help-solve channel on the Codewars Discord server. For now, I'll just say: Pay attention to the final hint in the description, and research how to peek into the contents of a Python class (if you don't already know how). I learned a lot about that by banging away at this kata and finally solving it.
Does anybody else find this description to be nowhere even close to sufficient? I have no idea what this is asking me to do.
I wished the description mentioned that months can come in different formats, as seen in the tests. Also, the description part "(7th character incremented by 5 if driver is female" I think it's more easily understood as simply "add 50 to the month if the driver is female".
If you are struggling with dates in Python, check the module for datetime.
Overall, fun and good!
Loading more items...