给定一个字符串,判断是否回文串,只考虑字母数字字符和忽略大小写。
示例1
输入
"A man, a plan, a canal: Panama"
输出
1
加载中...
import java.util.*; public class Solution { /** * * @param s string字符串 * @return int整型 */ public int isParlindrome (String s) { // write code here } }
class Solution { public: /** * * @param s string字符串 * @return int整型 */ int isParlindrome(string s) { // write code here } };
# # # @param s string字符串 # @return int整型 # class Solution: def isParlindrome(self , s ): # write code here
/** * * @param s string字符串 * @return int整型 */ function isParlindrome( s ) { // write code here } module.exports = { isParlindrome : isParlindrome };
# # # @param s string字符串 # @return int整型 # class Solution: def isParlindrome(self , s ): # write code here
"A man, a plan, a canal: Panama"
1