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.
Rust translate
Hi,
Unpublishing, otherwise it will sit there forever.
Cheers
This comment is hidden because it contains spoiler information about the solution
Missing self argument in items in provided intial code.
There could be more than one solution given the description. Suppose
datacount = [5, 20, 25]
andpage_size = 15
. Thenitems(1)
will return[(0, 4), (0, 4), (0, 4)]
. Now,items(2)
could return either[None, (5, 12), (5, 11)]
or[None, (5, 11), (5, 12)]
. It is not clear from the description that one is correct and the other is not.It's not usual to name a function in capital letters. Moreover this kata is a duplicate as noted below.
Duplicate of Collatz Conjecture Length except this one expects 1 less than that one.