Leetcode - 338. Counting Bits
此篇文章為我的解題紀錄,程式碼或許並不是很完善
解題思路
將每個數字轉換成binary(string)後在數每個字串裡總共有幾個一
我滴程式碼
1 | class Solution: |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments
此篇文章為我的解題紀錄,程式碼或許並不是很完善
將每個數字轉換成binary(string)後在數每個字串裡總共有幾個一
1 | class Solution: |