MRMichael Roksinmikeroks.hashnode.dev·Mar 3, 2024 · 4 min readNever make a mistake in a Binary Search again!Binary Search is Hard (well, at least Medium) When writing code for binary search problems, it is common to make a "one-off" mistake in the implementation of the algorithm - to forget "whether it is 'mid+1' or just 'mid'". To solve this issue and fir...00