/* * @lc app=leetcode id=5 lang=javascript * * [5] Longest Palindromic Substring * * https://leetcode.com/problems/longest-palindromic-substring/description/ * * algorithms * Medium (26.70%) * Total Accepted: 525K * Total Submissions: 1.9M * Testcase Example: '"babad"' * * Given a string s, find the longest palindromic substring in s. You may * assume that the maximum length of s is 1000. * * Example 1: * * * Input: "babad" * Output: "bab" * Note: "aba" is also a valid answer. * * * Example 2: * * * Input: "cbbd" * Output: "bb" * * */ /** * @param {string} s * @return {string} */ var longestPalindrome = function(s) { // tag: 字符串问题 };