pllk / cphb

Competitive Programmer's Handbook
2.9k stars 347 forks source link

Unisigned and 2^n-1 #56

Closed darbula closed 6 years ago

darbula commented 6 years ago

In this line

in an unsigned representation, the next number after $2^{n-1}$ is $0$.

$2^{n-1}$ should be $2^n-1$.

Similar to what is stated few lines above

An unsigned variable of $n$ bits can contain any integer between $0$ and $2^n-1$.