Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
def unique
(
lst
)
:
ones
=
0
twos
=
0
for
x in lst
:
twos
|=
ones
&
x
ones
^=
x
not_threes
=
~
(
ones
&
twos
)
ones
&=
not_threes
twos
&=
not_threes
return
ones