Description
Determine whether an integer is a palindrome. Do this without extra space.
在不使用额外空间的条件下判断一个整型是否为回文
Determine whether an integer is a palindrome. Do this without extra space.
在不使用额外空间的条件下判断一个整型是否为回文
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Example:
Input: "babad"
Output: "bab"
Note: “aba” is also a valid answer.
Example:
Input: "cbbd"
Output: "bb"
从给定字符串中找出最长的回文子串