Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 297 Bytes

File metadata and controls

14 lines (10 loc) · 297 Bytes

Problem 11: The Palindromic Core (Longest Palindromic Substring)

Problem Statement

Given a string s, return the longest palindromic substring in s.

Input Format

  • A string s.

Constraints

  • 1 <= s.length <= 1000

Example

Input: s = "babad"
Output: "bab" (or "aba")