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.
This solution returns 8 if n=0, which is wrong. n=0 isn't forbidden in the description, maybe the testcases should be updated.
whoa, that's brutal...
Apparently the Kata editor only validates the full tests - the example tests aren't validated/executed at all. That's why I missed that problem.
Moved the function to preloaded - should be working now with full tests and example tests.
Thank you guys, I learned something today ;)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're right - anybody can rename these. I just meant it'd be nicer if the prepared names are 'meaningful'. It's good practice - and authors should lead by example, especially in a fundamental (beginner level) kata ;)
There is no 'correct' return value - there are many. To be more precise:
(9 * NoOfDigitsInResult) - 1
many. (-1 because the leftmost digit mustn't be 0)
Translated to C#.
If I'm not mistaken solutions become obsolete when the testcases change. Not sure if that will affect the voted level though - probably not.
Since the description named the parameters 'dividend' and 'divisor', the provided example code should use them. (although - beeing a lazy programmer - I prefer the short names you used)
Hey pete,
I think it would be nice to rename the parameters. Instead of 'x' for bath use 'b' (or even use verbose param names). Enhances readability imho
This comment is hidden because it contains spoiler information about the solution
Given the constraint of creating the numbers in ascending order, many of the solutions have to be considered as false, since they don't "obey" the rules.
In my opinion this kata is a tad too difficult for a 7kyu, given the constrains.
See my Solution https://www.codewars.com/kata/reviews/57d4f9bac56ee0809a00000e/groups/582421067a8cb3e2120021a3 for a detailed explanation (with spoilers. Lots of...)