If start is equal to end then insert the array element
if ( qs == qe ) : NEW_LINE INDENT if ( arr [ qs ] == 1 ) : NEW_LINE INDENT seg [ ind ] . l1 = seg [ ind ] . r1 = qs NEW_LINE DEDENT else : NEW_LINE INDENT seg [ ind ] . l0 = seg [ ind ] . r0 = qs NEW_LINE DEDENT lazy [ ind ] = 0 NEW_LINE return NEW_LINE DEDENT mid = ( qs + qe ) >> 1 NEW_LINE