mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
Merge branch 'merge' of https://github.com/trekhleb/javascript-algorithms into merge
This commit is contained in:
commit
86dea85d97
@ -12,7 +12,7 @@ the number can't be a power of two.
|
|||||||
|
|
||||||
**Bitwise solution**
|
**Bitwise solution**
|
||||||
|
|
||||||
Powers of two in binary form always have just one bit.
|
Powers of two in binary form always have just one bit set.
|
||||||
The only exception is with a signed integer (e.g. an 8-bit
|
The only exception is with a signed integer (e.g. an 8-bit
|
||||||
signed integer with a value of -128 looks like: `10000000`)
|
signed integer with a value of -128 looks like: `10000000`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user