CodePudding user response:
Inside the while loop to the while (I & lt; B.l ength - 1)CodePudding user response:
There is something wrong with the logicBecause when always meet
If (a/mid==b [I])
, I have been increasing, and lo and hi or while (lo
This bug again is very simple, as long as each element b are the same, and ensure a [min]==b [I], I will certainly be crossing the line,