feat(content): more test cases

This commit is contained in:
2025-07-13 19:25:39 +01:00
parent 98ebb1600f
commit 16b02451d0
94 changed files with 1840 additions and 0 deletions

View File

@@ -9,6 +9,26 @@ categories:
patterns:
- dynamic-programming
function_signature: "def num_decodings(s: str) -> int:"
test_cases:
visible:
- input: { s: "12" }
expected: 2
- input: { s: "226" }
expected: 3
- input: { s: "06" }
expected: 0
hidden:
- input: { s: "1" }
expected: 1
- input: { s: "10" }
expected: 1
- input: { s: "2101" }
expected: 1
- input: { s: "11106" }
expected: 2
description: |
You have intercepted a secret message encoded as a string of numbers. The message is **decoded** via the following mapping: