Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
logn ステップで、O(1) スペースを使用して、長さ n の 2 進数の on ビットの数を評価する方法があるかどうかを調べようとしていますか? もしそうなら-どうやって?
ルックアップ テーブルは一定時間でこれを見つけます。