LeetCode 5: Longest Palindromic Substring — Step-by-Step Visual Trace
Medium — String | Two Pointers | Expand Around Centers | Palindrome
The Problem
Given a string, find and return the longest contiguous substring that reads the same forwards and backwards (palindrome).
Approach
Use the expand around centers technique...
blog.tracelit.dev1 min read