Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
2.5H
SUBMITTED BY:
Guest
DATE:
Sept. 20, 2014, 12:31 p.m.
FORMAT:
Text only
SIZE:
365 Bytes
Raw
Download
Tweet
HITS:
791
Go to comments
Report
int k=0;
int end=len-1;
int start=0;
while(k==0)
{
if(start!=end-2)
{
if(ar[end/2+start/2]>0)
{
if(ar[(end/2+start/2)+1]<0)
{
k=end/2+start/2;
}
start=end/2+(start/2);
}
else
{
end=end/2+(start/2);
}
}
else
{
k=start+1;
}
}
return k;
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus