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