Tilling problem II


why is this code wrong?

added comments

1 Like

why can’t we add the modulo in the final answer?

because at some intermediate step the value could exceed integer range

1 Like