You are viewing a single comment's thread. Return to all comments →
I know this is an old comment but I want to understand the logic behind this
squares.Length - (m - 1)
Can you help me?
If n = 19 and m = 7. You don't need to sum elements from index 13 to 18 because you don't have enough peaces of chocolate. I hope i helped you :D
Thank you :)