DIY: Palindromic Substrings

Solve the interview question "Palindromic Substrings" in this lesson.

Problem Statement

Given a string s, your task is to implement the algorithm that will return the number of palindromic substrings in it.

Note: A string is a palindrome when it reads ...

Access this course and 1400+ top-rated courses and projects.