bolo17

Untitled

Aug 30th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int binarySearch(int a[], int l, int r, int x){
  4.     if(l <= r){
  5.         int m = (l + r)/2;
  6.         if(x == a[m]){
  7.             return m;
  8.        get link:https://www.file-upload.com/tk6brlec9agy
Add Comment
Please, Sign In to add comment