feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

@@ -11,6 +11,26 @@ patterns:
- greedy
- heap
function_signature: "def reorganize_string(s: str) -> str:"
test_cases:
visible:
- input: { s: "aab" }
expected: "aba"
- input: { s: "aaab" }
expected: ""
hidden:
- input: { s: "a" }
expected: "a"
- input: { s: "aa" }
expected: ""
- input: { s: "ab" }
expected: "ab"
- input: { s: "aabb" }
expected: "abab"
- input: { s: "aaabb" }
expected: "ababa"
description: |
Given a string `s`, rearrange the characters of `s` so that any two adjacent characters are not the same.