feat(content): function signatures + test cases

This commit is contained in:
2025-07-13 19:53:34 +01:00
parent d65ccf7dc2
commit 0262ca8bf6
203 changed files with 4526 additions and 0 deletions

View File

@@ -8,6 +8,30 @@ categories:
patterns:
- prefix-sum
function_signature: "def total_money(n: int) -> int:"
test_cases:
visible:
- input: { n: 4 }
expected: 10
- input: { n: 10 }
expected: 37
- input: { n: 20 }
expected: 96
hidden:
- input: { n: 1 }
expected: 1
- input: { n: 7 }
expected: 28
- input: { n: 8 }
expected: 30
- input: { n: 14 }
expected: 63
- input: { n: 100 }
expected: 678
- input: { n: 1000 }
expected: 7089
description: |
Hercy wants to save money for his first car. He puts money in the Leetcode bank **every day**.