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.
Long lists are deliberate. You have to find a solution which does not time out with long lists.
I think they should either decrease the number of nodes in some tests or increase the time given for testing process
I think some random tests have too long lists like more than 8000 nodes. And the time given for testing process is out before the algorithm loops through the exisiting nodes.
pageItemCount
method doesn't pass the test. For example if there're 8 items and 4 items per page,pageItemCount(1)
is expected to return 4 instead of 0This comment is hidden because it contains spoiler information about the solution
Because unlike addition, multiplication converts string to number before multiplying e.g. '2' * '3' = 6
This comment is hidden because it contains spoiler information about the solution