Status: IN
The `[0] * (n + 1)` initialization serves double duty: it allocates the output array and establishes the base case `ans[0] = 0` without a separate assignment.
Source: entries/2026/06/06/counting-bits-solution.md
JSON