LeetCode 338. Counting Bits in F#
URL
Counting Bits - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202309/counting_bits/main.fsx
let countBits (n: int) : int list =
let hammingWeight n =
let m = n
let m = (m &&& 0x5555...
syohex.hashnode.dev1 min read