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

@@ -10,6 +10,26 @@ patterns:
- two-pointers
- dynamic-programming
function_signature: "def count_substrings(s: str) -> int:"
test_cases:
visible:
- input: { s: "abc" }
expected: 3
- input: { s: "aaa" }
expected: 6
hidden:
- input: { s: "a" }
expected: 1
- input: { s: "aa" }
expected: 3
- input: { s: "ab" }
expected: 2
- input: { s: "aba" }
expected: 4
- input: { s: "abba" }
expected: 6
description: |
Given a string `s`, return *the number of **palindromic substrings** in it*.