Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
knakul853
Jul 19th, 2020
183
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
class
Solution
{
public
:
bool
isPowerOfTwo
(
int
n
)
{
if
(
n
<=
0
)
return
false
;
return
(
n
&
(
n
-
1
)
)
==
0
;
}
}
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
BFS Algorithm
C++ | 22 min ago | 0.71 KB
?Make 1500$ in 1 day [Method]? MA
Java | 42 min ago | 0.14 KB
DFS Algorithm
C++ | 45 min ago | 0.56 KB
????FREE 500$ GIFTCARDS???? VF
Java | 45 min ago | 0.15 KB
3x3improved
Lua | 47 min ago | 3.57 KB
????Make 3500$ in 1 day [Method]???? XH
Java | 48 min ago | 0.15 KB
?Make $200 INSTANTLY [Works Worldwide]? SD
Java | 51 min ago | 0.15 KB
?Make 1500$ in 1 day [Method]? AZ
Java | 54 min ago | 0.15 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!