461
-
[LeetCode] 461. Hamming DistanceLeetCode 2021. 11. 19. 12:48
https://leetcode.com/problems/hamming-distance/ Hamming Distance - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Hamming Distance - Easy x와 y가 주어졌을때, Hamming distance를 구하는 문제다. Hamming distance란, 서로다른 비트의 수를 의미한다. 서로 다른 비트가 만났을 때, 1을 내뱉게 되는 XOR 연산자를 사용하면 편하다. x XOR y 연산을 실행하고, 1의..