Finding the Longest Palindromic Substring
You are given a string s, your task is to find the longest palindromic substring in s. A palindromic substring is a substring that reads the same backward as forward. Write a function longest_palindromic_substring(s: str) -> str that takes a string s and returns the longest palindromic substring in s. If there are multiple palindromic … Read more