Longest Palindromic Substring — JavaScript medium interview problem
Given a string `s`, return the longest palindromic substring in `s`. If there are multiple answers of the same length, return any one of them. Example: `longestPalindrome("babad")` → `"bab"` or `"aba"`.
Tags: expand-around-center, dp
Practice this Strings problem free in the JS Interview Playground with automated tests and unlockable solutions.