给定一个字符串,判断是否回文串,只考虑字母数字字符和忽略大小写。
示例1
输入
"aba"
输出
true
加载中...
import java.util.*; public class Solution { /** * 判断是否为回文串 * @param s string字符串 参数1 * @return bool布尔型 */ public boolean IsHuiWen (String s) { // write code here } }
class Solution { public: /** * 判断是否为回文串 * @param s string字符串 参数1 * @return bool布尔型 */ bool IsHuiWen(string s) { // write code here } };
# # 判断是否为回文串 # @param s string字符串 参数1 # @return bool布尔型 # class Solution: def IsHuiWen(self , s ): # write code here
/** * 判断是否为回文串 * @param s string字符串 参数1 * @return bool布尔型 */ function IsHuiWen( s ) { // write code here } module.exports = { IsHuiWen : IsHuiWen };
# # 判断是否为回文串 # @param s string字符串 参数1 # @return bool布尔型 # class Solution: def IsHuiWen(self , s ): # write code here
"aba"
true