Home > Back-end >  A small problem
A small problem

Time:01-25

Why do ask next everybody here when the length of the array b is greater than or equal to 25 complains

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 logic
Because 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,
  • Related