feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

@@ -27,6 +27,12 @@ test_cases:
expected: true
- input: { s: "cars", word_dict: ["car", "ca", "rs"] }
expected: true
- input: { s: "abcd", word_dict: ["a", "abc", "b", "cd"] }
expected: true
- input: { s: "bb", word_dict: ["a", "b", "bbb", "bbbb"] }
expected: true
- input: { s: "goalspecial", word_dict: ["go", "goal", "goals", "special"] }
expected: true
description: |
Given a string `s` and a dictionary of strings `wordDict`, return `true` if `s` can be segmented into a space-separated sequence of one or more dictionary words.