solulubeta
Sign in
NeetCode 150 / 1-D Dynamic Programming
13.05 · Problem

Longest Palindromic Substring

Medium Expand around each center 1 video LC 5 Pro

This problem is part of solulu Pro

Return the longest palindromic substring of s. (When two different substrings tie for the longest, either is correct; the tests here all have a single answer.)

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 103 of 150 · updated 2026-10-12