Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Latest commit

 

History

History
15 lines (8 loc) · 425 Bytes

Longest_Palindromic_Substring.md

File metadata and controls

15 lines (8 loc) · 425 Bytes

Longest Palindromic Substring

Problem Statement

Write a function that, given a string, returns its longest palindromic substring. A palindrome is dened as a string that is written the same forward and backward. Assume that there will only be one longest palindromic substring. Sample input:"abaxyzzyxf" Sample output:"xyzzyx"

Solution

Check this Python code.