一品网
  • 首页

Leetcode 647. Palindromic Substrings


Given a string s, return the number of palindromic substrings in it.

A string is a palindrome when it reads the same backward as forward.

A substring is a contiguous sequence of characters within the string.

题目

class Solution {
public:
    int countSubstrings(string s) {
        n=s.size();
        int sum=0;
        for(int i=0;i=0&&r
LeetCode字符串

相关


js 正则匹配 两个字符串之间,某个字符串之前(之后)的内容

大爽Python入门教程 1-2 数与字符串

Java21-统计字符串中每个字符出现的次数

【LeetCode每日一题】员工的重要性

【LeetCode每日一题】整数反转

全(十五)Jmeter 之 参数化 函数助手:__Random string(译:瑞德.丝锥):随机字符串

生成随机字符串

09练习:统计输入的字符串中各种字符的个数

2-14str1转义字符,格式化_2-15str2格式化,字符串内置函数

python基本数据类型;关于字符串格式化的补充

Java基础-02 字符串(汉字)与16进制字符串转换(无乱码)

C语言判断给定的字符串是否为合法的ip地址的代码-C-J

标签

一品网 冀ICP备14022925号-6