Skip to content

Commit

Permalink
Merge pull request #97 from computerwala/master
Browse files Browse the repository at this point in the history
updated
  • Loading branch information
rishabhgupta03 authored Oct 4, 2020
2 parents 18c965e + cbd4d8e commit 0837d73
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Solution {
public:
int hammingDistance(int x, int y) {
return __builtin_popcount(x^y);
}
};

0 comments on commit 0837d73

Please sign in to comment.