Strings: Longest Palindromic Substring

As I start to continue to prepare for technical interviews, I’ll be going over solutions for questions that I find initially challenging. Today, I’ll be going over the Longest Palindromic Substring problem on Leetcode. The problem can be found here.

Problem Description

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store