You are viewing a single comment's thread. Return to all comments →
This is not a O(1) solution. the bitCount function runs in O(log n) so the complexity is O(log n).
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 →
This is not a O(1) solution. the bitCount function runs in O(log n) so the complexity is O(log n).