feat(content): hidden test cases
This commit is contained in:
@@ -9,6 +9,30 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def check_if_can_break(s1: str, s2: str) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { s1: "abc", s2: "xya" }
|
||||
expected: true
|
||||
- input: { s1: "abe", s2: "acd" }
|
||||
expected: false
|
||||
- input: { s1: "leetcodee", s2: "interview" }
|
||||
expected: true
|
||||
hidden:
|
||||
- input: { s1: "aaa", s2: "aaa" }
|
||||
expected: true
|
||||
- input: { s1: "a", s2: "z" }
|
||||
expected: true
|
||||
- input: { s1: "zzz", s2: "aaa" }
|
||||
expected: true
|
||||
- input: { s1: "ab", s2: "ba" }
|
||||
expected: true
|
||||
- input: { s1: "acb", s2: "bca" }
|
||||
expected: true
|
||||
- input: { s1: "xyz", s2: "abc" }
|
||||
expected: true
|
||||
|
||||
description: |
|
||||
Given two strings: `s1` and `s2` with the same size, check if some permutation of string `s1` can break some permutation of string `s2` or vice-versa. In other words `s2` can break `s1` or vice-versa.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user