标签:++ AMM gdi turn IV class span min code
class Solution { public: int hammingDistance(int x, int y) { int r = x ^ y; return bitCount(r); } int bitCount(int x) { int res = 0; while (x) { x -= x & (-x); res++; } return res; } };
标签:++ AMM gdi turn IV class span min code
原文地址:https://www.cnblogs.com/JTechRoad/p/9102748.html