feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 72f7833c6c
commit a1a4eeaed7
134 changed files with 2075 additions and 0 deletions

View File

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