daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest May 28th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. {
  5.     if(lewy<=prawy)/2)
  6.     {
  7.         int srodek=(lewy+prawy)/2;
  8.         if(T[srodek]==szukana) return srodek;
  9.         if(T[srodek]<szukana) return szukaj(T,srodek+1,prawy,szukana);
  10.         return szukaj(T,lewy,srodek-1,szukana);
  11.     }
  12.     return -1;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top