text: If x is present in arr [ low ... high ] then returns the index of first occurrence of x , otherwise returns - 1
code: def _binarySearch ( arr , low , high , x ) : NEW_LINE INDENT if high >= low : NEW_LINE INDENT mid = ( low + high ) // 2 NEW_LINE DEDENT DEDENT