Well, to be honest i couldn't have found the answer because i didnt know how to use the range function so thanks i guess, i think i learned something new now
pageItemCount is not correct when the last page is rquested while the number of items is a multiple of itemsPerPage. It will return the remainder which is zero.
This comment is hidden because it contains spoiler information about the solution
i wish i could make code like you
Oh well. You're right. But it's Python.
Man I feel dumb when I look at this code
I did it in something like 8 lines of code, you did in one.
Good Job 👍
Well, to be honest i couldn't have found the answer because i didnt know how to use the range function so thanks i guess, i think i learned something new now
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
As a beginner, this makes sense to me.
That was clever!
Probably the best solution on my opinion
TIL i didn't need to turn my range into a list first 😅
This is a level 8 challenge. Beginner level. As a beginner I don't even know what
O(n)
is : /This comment is hidden because it contains spoiler information about the solution
pageItemCount is not correct when the last page is rquested while the number of items is a multiple of itemsPerPage. It will return the remainder which is zero.
It makes no difference because anything + 0 is the same.
Loading more items...