feat(content): function signatures + test cases
This commit is contained in:
@@ -9,6 +9,30 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def can_convert_string(s: str, t: str, k: int) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { s: "input", t: "ouput", k: 9 }
|
||||
expected: true
|
||||
- input: { s: "abc", t: "bcd", k: 10 }
|
||||
expected: false
|
||||
- input: { s: "aab", t: "bbb", k: 27 }
|
||||
expected: true
|
||||
hidden:
|
||||
- input: { s: "a", t: "a", k: 0 }
|
||||
expected: true
|
||||
- input: { s: "a", t: "b", k: 0 }
|
||||
expected: false
|
||||
- input: { s: "a", t: "b", k: 1 }
|
||||
expected: true
|
||||
- input: { s: "ab", t: "ab", k: 100 }
|
||||
expected: true
|
||||
- input: { s: "aaa", t: "bbb", k: 53 }
|
||||
expected: true
|
||||
- input: { s: "abc", t: "abcd", k: 100 }
|
||||
expected: false
|
||||
|
||||
description: |
|
||||
Given two strings `s` and `t`, your goal is to convert `s` into `t` in `k` moves or less.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user