You are viewing a single comment's thread. Return to all comments →
It's not an O(1) solution . As this -->
_popcnt64(n-1)
takes the same time as the previous suggested solution . The only difference is that it's faster to type this :)
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 →
It's not an O(1) solution . As this -->
takes the same time as the previous suggested solution . The only difference is that it's faster to type this :)