Morass

bs - tourism

Apr 15th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1.  
  2.   int low = 0, high = m + 1;
  3.   while (low < high) {
  4.     int mid = (low + high) >> 1;
  5.     if (ok) high = mid;
  6.     else low = mid + 1;
  7.   }
Advertisement
Add Comment
Please, Sign In to add comment