You are viewing a single comment's thread. Return to all comments →
If N is not a power of 2, then reduce the counter by the largest power of 2 less than N.
N
2
that's why
10 -> (10 - 8 ) = 2 -> 1
Seems like cookies are disabled on this browser, please enable them to open this website
Counter game
You are viewing a single comment's thread. Return to all comments →
If
N
is not a power of2
, then reduce the counter by the largest power of2
less thanN
.that's why