diff --git a/notes/15. 二进制中 1 的个数.md b/notes/15. 二进制中 1 的个数.md index ff8c3d41..72b4f3aa 100644 --- a/notes/15. 二进制中 1 的个数.md +++ b/notes/15. 二进制中 1 的个数.md @@ -12,7 +12,7 @@ n&(n-1) 位运算可以将 n 的位级表示中最低的那一位 1 设置为 0。不断将 1 设置为 0,直到 n 为 0。时间复杂度:O(M),其中 M 表示 1 的个数。 -

+

```java diff --git a/notes/pics/hamming-weight.png b/notes/pics/hamming-weight.png new file mode 100644 index 00000000..79ad6576 Binary files /dev/null and b/notes/pics/hamming-weight.png differ