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.
Removed "clever" code, added normal code.
JS test suite should be more maintainable.
see https://www.codewars.com/kata/6885f0a045008e707baa714b/discuss/javascript#68934c9477374ded3ae55cd8
I found the deescription confusing (mostly because of inconsistent use of terms), so I edited it accordingly. I tried not to allow any of my changes to provide spoilers, but only clearer communications about the requirements.
Changed it to include 2 left movement, not 1.
which you came up with, remember? Good point about the example.
I've got plenty of ideas that are not duplicates. However, if you can't solve most of my BF katas, I think you are gonna need to think for a bit on those. Stay tuned.
We don't have to worry about state, the star is used correctly here, if I understand what your concern is
Finally a YurichBRO kata that even I can solve :-) Thanks for the fun.
I hope you can indeed create more installments in this series without duplication of existing kata. I would look forward to that.
Use built-in python integer division. And report a wrong case if it happens, not what you think could happen.
Python random tests generator has a protection against generating division by zero in the expression, and there is no fixed test with division by zero either, so...
you're not saying that the tests generate such a case. you're not using those words. if it does, that is an issue. you're being vague about where
3 4 9 / /
comes from, but I'm guessing you came up with it. which means it didn't happen in the kata. which means there is no issue to report.an issue needs to demonstrate the problem in a reproducible way. tbh, issue reviewers will probably dig more than they're willing to admit, but if your issue is incorrect and you're sharing something that's multiple steps of reasoning away from the bug itself, then the person reading your issue is not going to be making the same mistake as you and thus won't encounter anything being wrong and will therefore not "get it".
I'm guessing your code divides by zero. cool. go debug it. start by finding out what input your code fails on.
This comment is hidden because it contains spoiler information about the solution
I prepared for this kata by reading about the Postfix Mail Transfer Agent. Only after doing that did I read the kata description :P
Nah, it won’t happen—I’ve added a line in the description to cover it.
Really enjoyed this, but I think the instructions should clarify the following:
I was ashamed of the hard-coding in my first solution, so I came back and changed my medved function to iterate over (and test) all possibilities.
Loading more items...