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.
As a beginner, this solution is faster for me to write while staying extremely readable/understandable.
This comment is hidden because it contains spoiler information about the solution
( ͡° ͜ʖ ͡°)
best!
i really like this solution when it comes to checking if its even or odd because it is more readable and maintainable
This is BEST Practice, because it's more readable unlike top variant
Thanks for the reply. I'm pretty unfamiliar with what that bit of math is though. Most of the solutions involved some formula that has me puzzled.
A bit mathematics is involved, but by inspection/observation is more than enough.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
more specifically: it's not laziness when you try to change it and it doesn't come up as you'd expect; it works -for a single user- like you and me when we submit, then when I go to the solutions tab, I see that the old solutions of other users have now a red band on their left as if they are no more working. I don't know what that exactly means, if these users might lose honour and language points, but I think it's enough to not change the kata setup, therefore I've reverted it back.
@mmalkavian
,You didn't resolve anything, being lazy doesn't seem like a good reason to go against a languages naming conventions. A lot of people are coming to Codewars to learn how to code, why not help them learn the right way (for their particular language), the first time?
You can look at my solution and see that it is possible, I used snake_case and it magically works.
I've tried it and it works... only for me.
The other users who solved it will be now having issues (the "Solutions" tab will show their solution with a red band for errors), therefore it stays with the old camel case name.
@mmalkavian
,Just rename the
Solution & Initial Solution
andExample Tests & Tests
toreverse_and_mirror
and then create an alias from the camelCased function to the snake_cased function inTest Cases
. That way the previous solutions will run against the test cases even though they have a different function name.better now.
Loading more items...