Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 19th, 2018
76
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
class PowerOfTwo {
func isPowerOfTwo(_ n: Int) -> Bool {
return n == 1 ? true : ( n<1 || n%2 != 0) ? false : isPowerOfTwo(n/2)
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
player.hpp as of 2024-03-29
C++ | 30 min ago | 1.41 KB
globals.hpp as of 2024-03-29
C++ | 31 min ago | 2.29 KB
Ignore Fill OWOP
JavaScript | 42 min ago | 2.00 KB
Chess-results team players
JavaScript | 45 min ago | 1.30 KB
primes.sh
Bash | 46 min ago | 0.66 KB
Untitled
JavaScript | 47 min ago | 1.12 KB
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 48 min ago | 0.39 KB
data880
JSON | 1 hour ago | 0.64 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!