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

@@ -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.