Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Find the odd int. Bitwise elegant solve
Timkor
Jul 16th, 2021
(
edited
)
384
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
findOdd
(
arr
)
{
let result
=
0
;
for
(
let i
=
0
;
i
<
arr.
length
;
i
++
)
{
result
=
result
^
arr
[
i
]
;
}
return
result
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
string_pack_unpack
Python | 33 sec ago | 3.00 KB
быстрая сортировка, бинарный поиск
C++ | 1 min ago | 2.73 KB
elevators
Lua | 1 min ago | 0.70 KB
nvidia-390xx-utils PKGBUILD
Bash | 5 min ago | 11.81 KB
6 log
HTML | 6 min ago | 0.08 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 9 min ago | 0.39 KB
Firewall
Ruby | 10 min ago | 1.69 KB
Add widget area to Genesis page template
PHP | 46 min ago | 0.78 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!