7 kyu
isEven? - Bitwise Series
832 of 1,906MichaelSel
Loading description...
Restricted
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
python new test framework is required. updated in this fork
Approved
In Python there's a wrong test failure message if "mod" is in the code. In Ruby there's much more ways to do the task besides the intended one.
I am not a python guy. could you fork the corrections?
Indeed! Simply add the word
modulo
to the docstring and a previously valid solution turns invalid :Dwell, whoever created the kata translation should fix it, or any of you is welcome to. As I said, I'm not a python guy..
This comment has been hidden.
MichaelSel, you need to block the use of
indexOf()
function too.I could, but I am actually happy with the imaginative solutions people come up with. Even if they are not using bitwise, it's still good learning. What do you think?
Crystal translation submitted, cheers :)
New language 😏, Nice! 😎
Ruby and Pyhton translations please check and accept :-)
I've also disabled '.even?' from the Ruby translation
Great! I approved the Python. Can you add in the Ruby description instead of this line: "Oh yeah... and you cannot use "%" in your code." this line: "Oh yeah... and you cannot use "%" or .even in your code."
Updated :-) Ruby hasn't been approved yet though :-)
It won't let me approve it since the description has been changed. It says the versions must be merged first but I have no idea how to merge in codewars.. Do you know?
Please try this new one Ruby :-)
worked :)
Thank you!
This comment has been hidden.