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.
The question is looking for the number of times you performed multiplication, not the end result of the multiplication.
the same 'edge case' test block was testing the
1,2,3,4
list with4
items per page at first, then with1
, hence a mismatch between the name of the test block and the assertion messages for the latter. i moved the tests with1
item per page to their own block???????
Incorrect answer for n=39 ==> expected: <3> but was: <4>
3 * 9 = 27
2 * 7 = 14
1 * 4 = 4
Why expected 3?
Please, help me.
Zero based(pages).
4 items for page.
helper.pageIndex(1);
Why expected 1?
Error:
Edge case: List [1,2,3,4] with 4 items per page
pageIndex is returning incorrect value for index 1 ==> expected: <1> but was: <0>
This comment is hidden because it contains spoiler information about the solution