Title meaning: Define a string as \(super\) palindrome string as:< br> \(\bullet\) The string s is a substring of the main string str, namely \(s = str_lstr_{l + 1} \cdots str_r\)
\(\bullet\) stri
Tag: palindrome
[LC] 125. Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Note: For the purpose of this problem, we define empty string as valid palindrome
I Love Palindrome String
I Love Palindrome String Time limit: 2 Sec Memory limit: 128 MB
topic description You are given a string S=s1s2..s|S| containing only lowercase English letters. For each integer i∈[1,|S|], pleas
POJ 1159 Palindrome – Maximum Public Sub Sequence Question + Rolling Array
Description
Input
Output
Sample Input
5
Ab3bd Sample Output
2
The meaning of the question: give n, which means The length of the string given next is n. Insert a
[9]Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Input: 121
Output: true
Example 2:
Input: -121