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 length_of_longest_substring(s: str) -> int:"
test_cases:
visible:
- input: { s: "abcabcbb" }
expected: 3
- input: { s: "bbbbb" }
expected: 1
- input: { s: "pwwkew" }
expected: 3
hidden:
- input: { s: "" }
expected: 0
- input: { s: " " }
expected: 1
- input: { s: "au" }
expected: 2
- input: { s: "dvdf" }
expected: 3
description: |
Given a string `s`, find the length of the **longest substring** without repeating characters.