leetle

Daily challenge for 2025-06-16

167. Palindromic Substrings

Write a function solve that counts the number of palindromic substrings in a string. A substring is palindromic if it reads the same backward as forward.

Example:
Input: "abc"
Output: 3 ("a", "b", "c")

Run this challenge interactively in Python or JavaScript when the app loads.