Loading...
Given n, return an array ans of length n+1 where ans[i] is the number of 1's in binary i.
n
ans
n+1
ans[i]
i