@@ -12,9 +12,9 @@ |
||
12 | 12 | return 0; |
13 | 13 | } |
14 | 14 | |
15 | - $z = (string)(decbin($x ^ $y)); |
|
15 | + $z = (string) (decbin($x ^ $y)); |
|
16 | 16 | |
17 | - return (int)(substr_count($z, '1')); |
|
17 | + return (int) (substr_count($z, '1')); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public static function hammingDistance2(int $x, int $y): int |