码迷,mamicode.com
首页 >  
搜索关键字:palindromic substrin    ( 620个结果
1024 Palindromic Number (25分)
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:其他好文   时间:2020-05-14 01:07:23    阅读次数:59
1019 General Palindromic Number (20分)
题目 A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic num ...
分类:其他好文   时间:2020-05-13 23:42:26    阅读次数:103
1019 General Palindromic Number (20分)
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:其他好文   时间:2020-05-08 22:46:30    阅读次数:65
hackerrank Palindromic Border
题意 令$P(S)$为border集合中为回文串的个数。给定$S$,求$\sum\limits_{i}\sum\limits_j P(S[i,j])$ 做法 这个题主要是别想偏 考虑两个相同的回文串,可以组合在一起形成$1$的贡献 设某个回文串总共有$x$个,贡献为${x\choose 2}$ ...
分类:其他好文   时间:2020-05-04 21:48:52    阅读次数:78
【LeetCode 5. Longest Palindromic Substring】
给定一个字符串 s,找到 s 中最长的回文子串(正读和反读都相同的字符串)。你可以假设 s 的最大长度为 1000。 ...
分类:其他好文   时间:2020-04-25 23:15:30    阅读次数:55
【中等】5-最长回文子串 Longest Palindromic Substring
题目 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s ...
分类:其他好文   时间:2020-04-15 18:30:58    阅读次数:59
[LC] 647. Palindromic Substrings
Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c ...
分类:其他好文   时间:2020-03-29 10:56:42    阅读次数:54
PTA(Advanced Level)1023.Palindromic Number
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number . For example, 1234321 is a palindromic numbe ...
分类:其他好文   时间:2020-03-26 01:01:00    阅读次数:67
lc0315
[toc] ? 1332. 删除回文子序列 https://leetcode cn.com/problems/remove palindromic subsequences/ 描述 ? 884. 两句话中的不常见单词 https://leetcode cn.com/problems/uncommon ...
分类:其他好文   时间:2020-03-15 13:31:04    阅读次数:53
leetcode 5. Longest Palindromic Substring (java)
class Solution { public String longestPalindrome(String s) { if (s == null || s.length() < 1) return ""; int start = 0; int end = 0; for (int i = 0; i ...
分类:编程语言   时间:2020-03-12 14:14:41    阅读次数:65
620条   上一页 1 2 3 4 5 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!