You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
先找一下规律,
可以得到规律就是
2
和3
的二进制是在0
和1
的二进制最前面加1
,同理 47 是在 03 的最前面加1
,那么就可以以 0 和 1 的二进制个数为基础推算出每个数字的二进制数的 1 的个数。执行用时 : 140 ms, 在Counting Bits的JavaScript提交中击败了96.63% 的用户
内存消耗 : 39.6 MB, 在Counting Bits的JavaScript提交中击败了57.58% 的用户
The text was updated successfully, but these errors were encountered: