Search
⌘K

Leetcode 647. Palindromic Substrings

Count the number of contiguous substrings of s that are palindromes. With |s| up to 1000, the core challenge is to enumerate/detect all palindromic centers efficiently (typical solutions run in O(n^2) or O(n) time).

Asked at:

Microsoft

Microsoft

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid January, 2026

Microsoft

Microsoft

Mid-level

Same question as leetcode

Late October, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.