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

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