Available question text
Count the number of length-5 palindromic subsequences in a digit string (they must have the form a b c b a) and return the result modulo 1e9+7. The algorithmic challenge is to efficiently count combinations of matching outer and inner digit pairs across positions (e.g., via aggregated prefix/suffix counts or DP) for strings up to ~10^4 in length.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 2 records
Meta
Leetcode 2484. Count Palindromic Subsequences
Reported Apr 21, 2025 · 2 source reports
MID_LEVEL
Source snapshot: Nov 12, 2026
View sourceUber
Leetcode 2484. Count Palindromic Subsequences
Reported Feb 23, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source