CodingReported in a candidate post, Dec 2021
Count Palindromes in Patterned String
Filed under Samsung
The question
Given an odd-length character array with a repeating pattern like 'abababa', calculate the total number of palindromic substrings.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.