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 kata is more targeted towards a paging as in memory paging mechanism, not to be mixed up with a page in a book. Here is a pointer: https://en.wikipedia.org/wiki/Paging. In computer science nearly every counting sequence starts at 0 (think of array indices for example).
Concerning the test output, I agree.
Maybe numbers are too big for JS and I would have to change them...
Javascript.
And what I've found is that my sum, for large numbers, starts to be different from the correct value (I've checked it with wolfram alpha and also with a quick implementation in python).
Which language?
I've optimized my solution (expanded the summation) but I'm still stuck with the expected value of 55100.
Is there any clever trick that needs to be applied when we reach those huge values for m?
Thanks in advance!
I improved the solution in other languages:-) Thank for the feedback!
This comment is hidden because it contains spoiler information about the solution
I don't understand what you mean. Please can you be more explicit?