feat(content): more test cases
This commit is contained in:
@@ -9,6 +9,26 @@ categories:
|
||||
patterns:
|
||||
- sliding-window
|
||||
|
||||
function_signature: "def min_window(s: str, t: str) -> str:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { s: "ADOBECODEBANC", t: "ABC" }
|
||||
expected: "BANC"
|
||||
- input: { s: "a", t: "a" }
|
||||
expected: "a"
|
||||
- input: { s: "a", t: "aa" }
|
||||
expected: ""
|
||||
hidden:
|
||||
- input: { s: "ab", t: "a" }
|
||||
expected: "a"
|
||||
- input: { s: "ab", t: "b" }
|
||||
expected: "b"
|
||||
- input: { s: "bba", t: "ab" }
|
||||
expected: "ba"
|
||||
- input: { s: "abc", t: "cba" }
|
||||
expected: "abc"
|
||||
|
||||
description: |
|
||||
Given two strings `s` and `t` of lengths `m` and `n` respectively, return *the **minimum window substring*** of `s` such that every character in `t` (**including duplicates**) is included in the window.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user