โ† Accolite questions

Count palindromes and find longest palindromic substring

Filed under Accolite

Given a string `s`, count the number of palindromic substrings of length greater than 2, and find the length of the longest palindromic substring in `s`.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accolite questions

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