题解 | #判断是否为回文字符串#
判断是否为回文字符串
https://www.nowcoder.com/practice/e297fdd8e9f543059b0b5f05f3a7f3b2
class Solution { public: bool judge(string str) { int len = str.length(); for (int i = 0; i < len; i++) { if (str[i] != str[len - 1 - i]) return false; } return true; } };
刷题题解(c++) 文章被收录于专栏
算法题题解(c++)