Skip to content

Latest commit

 

History

History

challenge-18

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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"