binary search in array contains overflow bug
mattrozak opened this issue · comments
better to calculate midpoint as
mid = lo + (hi-lo)/2;
An Open-Source Collection of 200+ Flash Cards to Help You Preparing Your Algorithms & Data Structures Interview 💯
mattrozak opened this issue · comments
better to calculate midpoint as
mid = lo + (hi-lo)/2;