Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
binary_search
istinishat
Apr 28th, 2017
447
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++ (with Qt extensions)
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
int
binary_serach
(
)
{
int
l
,
r
;
//l points to true, and r points to false
while
(
r
-
l
>
1
)
{
int
mid
=
(
l
+
r
)
/
2
;
if
(
f
(
mid
)
)
l
=
mid
;
else
r
=
mid
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Free Crypto Exploit
CSS | 24 min ago | 0.94 KB
β Method to get 13,000$ in 2 days
CSS | 24 min ago | 0.94 KB
πππΊππππΊππΎππ πππΊππΎ ππ πΊπΌπΎπππ π½πΎπ πΌππ½πΎ.
CSS | 1 hour ago | 6.34 KB
Untitled
1 hour ago | 15.76 KB
Untitled
2 hours ago | 3.30 KB
Untitled
3 hours ago | 22.79 KB
Untitled
5 hours ago | 6.98 KB
Untitled
5 hours ago | 16.20 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!