feat(content): more test cases

This commit is contained in:
2025-07-13 19:25:39 +01:00
parent e28da5def2
commit 0f264ef603
94 changed files with 1840 additions and 0 deletions

View File

@@ -10,6 +10,26 @@ categories:
patterns:
- sliding-window
function_signature: "def check_inclusion(s1: str, s2: str) -> bool:"
test_cases:
visible:
- input: { s1: "ab", s2: "eidbaooo" }
expected: true
- input: { s1: "ab", s2: "eidboaoo" }
expected: false
- input: { s1: "adc", s2: "dcda" }
expected: true
hidden:
- input: { s1: "a", s2: "a" }
expected: true
- input: { s1: "ab", s2: "a" }
expected: false
- input: { s1: "abc", s2: "ccccbbbbaaaa" }
expected: false
- input: { s1: "hello", s2: "ooolleoooleh" }
expected: false
description: |
Given two strings `s1` and `s2`, return `true` if `s2` contains a permutation of `s1`, or `false` otherwise.