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.
FizzBuzz is not an 8 kyu problem. More like a 7 kyu.
thanks! Now got it. Need to distribute ALL the numbers in a certain order + the given list is unordered. The description is not that accurate(
[5, 6, 7, 8], [5, 6, 7, 8], [6, 7, 8, 9]
Both tests are fine. The numbers should be consecutive within each group.
and how this can be True? test.assert_equals(consecutive_nums([6, 6, 6, 9, 7, 8, 7, 5, 8, 5, 7, 8], 4), True)
is it True? Description, Examples, consecutive_nums([1, 2, 3, 6, 2, 3, 4, 7, 8], 3) ➞ True, # [1, 2, 3], [2, 3, 4], [6, 7, 8]
This comment is hidden because it contains spoiler information about the solution
yeah, I'm not sure what was up with the first test case being a variable v. Good you removed it.
Thanks, I've learned more about duplicate objects that point to the same thing.
I'll be more aware of it now.
the indexing doesn't work the way you want it to, since the behaviour of
result = [list(people)] * len(people)
is kinda wierd. your input makes five references to the same list. this can better clear your doubtsThis comment is hidden because it contains spoiler information about the solution