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.
*pogchamp
Omg! I'm understand, thx :)
The desired new number doesn't have to be formed from numbers already in the squad. The two numbers added just need to be between 1 and 9 inclusive
11 is the desired number, it is already in "squad", then we need to return 29 (2 + 9 = 11), but it has already been taken. It remains 38 (3 + 8 = 11), and this number cannot be formed, since the number 8 is not in "squad"
The test is correct.
Why would it be a problem "there is no 8 in this test" ?
"test.assert_equals(generate_number([1,2,3,4,6,9,10,11,15,29, 69], 11), 38)"
excuse me but there isn't 8 in this test. Is this how it should be?
Fun theme and idea behind this kata, but description could be improved. As others have noted, it sounds like wins and losses are going to be marked by either a 1 or 0 when in fact we see other values.
Also I think that this kata should be a 6 kyu. It's as difficult, if not more difficult, than this one which I completed recently https://www.codewars.com/kata/580d08b5c049aef8f900007c
No
0
s allowedOne wrong test. I'm afraid.
Test.it("should return None, if n is already taken and no two digit solutions can be found")
Test.assert_equals(generate_number([1,2,3,4,6,9,10,11,15,18,27,29,34,36,38,45,47,54,56,63,65,69,72,74,81,83,92], 9), None)
9 is taken but 90 is not into squade so result should be 90 not None (or rather include 90 into squad).
I think you need 80% approval rating for this particular kata to be approvable.
Sorted. While you're here, as a 1dan member, do you have any idea how long it might take for this kata to get out of beta phase? Is there anything I can do to speed up the process?
Looks like you made the update.
How do I do that?
Sorry, I thought I'd already added these a while ago, but must have forgot to publish changes. Thanks for reminder. Added now.
Sorry, I thought I'd already added these a while ago, but must have forgot to publish changes. Thanks for reminder. Added now.
You can turn off the console logging of the random tests input for Python; it creates a long vertical line of the elements. The user can always print to console if they wish.
Loading more items...