Search
Duplicate
๐Ÿ“’

Number Complement

์ฃผ์ฐจ
๋ฌธ์ œ๋ฒˆํ˜ธ
476
์–ธ์–ด
C++
ํ‹ฐ์–ด
์œ ํ˜•
๋น„ํŠธ์—ฐ์‚ฐ
nj_Blog
nj_์ƒํƒœ
์ดํ•ด๋„
66%
ํ’€์ด
์‚ฌ๋žŒ
์ดํ•ด๋„ 2
13 more properties

๋ฌธ์ œ์ ‘๊ทผ

โ€ข
๋น„ํŠธ ์—ฐ์‚ฐ

๋†“์ณค๋˜ ๋ถ€๋ถ„

์ฝ”๋“œ

5.9 MB

3 ms

class Solution { public: int findComplement(long num) { long long i; for (i = 1; i <= num; i <<= 1) num ^= i; return num; } };
C++
๋ณต์‚ฌ