Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
leetcode1
5m1le
Apr 1st, 2020
64
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
class
Solution
{
public
:
int
singleNumber
(
vector
<
int
>
&
nums
)
{
int
temp
=
nums
[
0
]
;
for
(
int
i
=
1
;
i
<
nums.
size
(
)
;
i
++
)
{
temp
^
=
nums
[
i
]
;
}
return
temp
;
}
}
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 13 min ago | 0.38 KB
Untitled
C | 22 min ago | 0.82 KB
Untitled
C++ | 25 min ago | 0.94 KB
CC Wheat/Potato/etc. Farm
Lua | 28 min ago | 3.38 KB
Untitled
C++ | 32 min ago | 0.44 KB
Untitled
Bash | 33 min ago | 0.02 KB
Untitled
C++ | 35 min ago | 0.30 KB
Untitled
C++ | 36 min ago | 0.31 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!