In line 14, shouldn’t we have used m=(s+e)/2
and if not,what is >> operator doing?
Square root of a no
Hey @kumarsaksham601
a/2 is equivalet to a>>1
So u can do it in either ways.
is right shift operator and shift the bits of the number to the stated place to the right
Say num is 4 so bit representation is (0000…00100) so 4>>1 ==2 (000.00010)
4>>2 ==1(000.0001)