arrow_back Back to Challenges

#647 Palindromic Substrings

Medium Acceptance 0%
description

Problem Description

Given a string `s`, return the number of palindromic substrings in it. A string is a palindrome when it reads the same backward as forward. A substring is a contiguous sequence of characters within the string.

checklist Constraints

1 <= s.length <= 1000
s consists of lowercase English letters.

science Examples

Case #1

In: s = "abc"
Out: 3

Case #2

In: s = "aaa"
Out: 6

Mastery Tags

Dynamic Programming Strings

Hiring Companies

Amazon Meta Microsoft
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude