feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 72f7833c6c
commit a1a4eeaed7
134 changed files with 2075 additions and 0 deletions

View File

@@ -27,6 +27,12 @@ test_cases:
expected: [0, 1, 1, 2, 1, 2, 2, 3]
- input: { n: 10 }
expected: [0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2]
- input: { n: 3 }
expected: [0, 1, 1, 2]
- input: { n: 15 }
expected: [0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4]
- input: { n: 4 }
expected: [0, 1, 1, 2, 1]
description: |
Given an integer `n`, return an array `ans` of length `n + 1` such that for each `i` (`0 <= i <= n`), `ans[i]` is the **number of `1`'s** in the binary representation of `i`.