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