a question. I came across two formulas to find the mid value
mid = low + (high-low)//2
and
mid = (low+high)//2
Both give the same result as seen below. When to use which?
They are the same
you need to learn algebra :)
I was never good at math
you'll have a hard time with programming then.
🥲 thanks for motivation
Обсуждают сегодня