โ† SAP questions

Count palindrome substrings for given query length ranges

Filed under SAP

The question

Given a string and two vectors denoting left and right boundary length ranges, calculate the total count of palindromic substrings with lengths falling within each range, returning the counts in a vector.

No write-up yet. Related questions below have one.

Related SAP questions

Collected from public candidate posts and coding forums. Updated Nov 2026.