feat(content): more test cases
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user