Issue: imho, instructions should explicitly say that all the numbers in the list provided are positive (if the list provided was including negative numbers, most of the solutions would need to be different).
the description doesn't give the actual specs of the task
7 years, no fix, 42 warriors trained, no completions (well, 1, but... not even sure that's an actual completion): means the description doesn't actually match the real specs
if ever you fix the description:
needs random tests
tests must be updated to ue the new test framework
Unpublishing, otherwise it will sit there forever.
Missing self argument in items in provided intial code.
There could be more than one solution given the description. Suppose datacount = [5, 20, 25] and page_size = 15. Then items(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.
Issue: imho, instructions should explicitly say that all the numbers in the list provided are positive (if the list provided was including negative numbers, most of the solutions would need to be different).
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.