mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 14:36:25 +08:00
Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
00ce22bd38
commit
85bd4bc5c6
@@ -32,6 +32,10 @@ unsigned int hamming_distance(int a, int b) {
|
||||
return bitCount(a ^ b);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main() {
|
||||
int a = 11; // 1011 in binary
|
||||
int b = 2; // 0010 in binary
|
||||
|
||||
Reference in New Issue
Block a user