OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63bb6f1
)
Update bit.md
author
Ir1dXD
<sirius.caffrey@gmail.com>
Mon, 22 Oct 2018 14:23:43 +0000
(22:23 +0800)
committer
GitHub
<noreply@github.com>
Mon, 22 Oct 2018 14:23:43 +0000
(22:23 +0800)
docs/ds/bit.md
patch
|
blob
|
history
diff --git
a/docs/ds/bit.md
b/docs/ds/bit.md
index
6b0d572
..
dddd08c
100644
(file)
--- a/
docs/ds/bit.md
+++ b/
docs/ds/bit.md
@@
-41,9
+41,8
@@
$c[6]$ 管理的是 $a[5]$ & $a[6]$ ;$c[8]$ 则管理全部 $8$ 个数。
这时,我们引入一个函数—— `lowbit`:
```cpp
-int lowbit(
- int x) //算出x二进制的从右往左出现第一个1以及这个1之后的那些0组成数的二进制对应的十进制的数
-{
+int lowbit(int x) {
+//算出x二进制的从右往左出现第一个1以及这个1之后的那些0组成数的二进制对应的十进制的数
return x & -x;
}
```