Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 322 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 322 Bytes

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"