Overflow concept

I could not understand the concept of overflow.

@ayusdas2000 are wanting to ask overflow as an independent concept or something related to this question?

sorry, i actually asked the doubt in wrong question. I could not understand the overflow concept of the random query question.

are u taking about the hint video

if yes


where please tell timestamp

https://youtu.be/dXytG94GYps?t=1623. The url is timestamped

since the values are of the order 10^6
integer overflow means that after multiplication of
2*sum + n
the value might go out of possible range of int

so order to avoid that
we use the modified version