feat(content): more test cases
This commit is contained in:
@@ -10,6 +10,24 @@ patterns:
|
||||
- two-pointers
|
||||
- dynamic-programming
|
||||
|
||||
function_signature: "def longest_palindrome(s: str) -> str:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { s: "babad" }
|
||||
expected: "bab"
|
||||
- input: { s: "cbbd" }
|
||||
expected: "bb"
|
||||
hidden:
|
||||
- input: { s: "a" }
|
||||
expected: "a"
|
||||
- input: { s: "ac" }
|
||||
expected: "a"
|
||||
- input: { s: "racecar" }
|
||||
expected: "racecar"
|
||||
- input: { s: "aacabdkacaa" }
|
||||
expected: "aca"
|
||||
|
||||
description: |
|
||||
Given a string `s`, return *the longest palindromic substring* in `s`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user