Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Longest Palindromic Substring

This problem was asked by Twitter.

Description

A palindrome is a sequence of characters that reads the same backwards and forwards.

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

Example

Input: "banana"
Output: "anana"

Input: "million"
Output: "illi"