I could not understand the concept of overflow.
Overflow concept
@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
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