码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
621. Task Scheduler
问题描述: Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks ...
分类:其他好文   时间:2018-06-17 14:21:46    阅读次数:162
[LeetCode] Custom Sort String 自定义排序的字符串
S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per ...
分类:编程语言   时间:2018-06-16 13:20:28    阅读次数:250
848. 字母移位
解题: 有一个由小写字母组成的字符串 S,和一个整数数组 shifts。 我们将字母表中的下一个字母称为原字母的 移位(由于字母表是环绕的, 'z' 将会变成 'a')。 例如·,shift('a') = 'b', shift('t') = 'u',, 以及 shift('z') = 'a'。 对于 ...
分类:其他好文   时间:2018-06-15 00:59:41    阅读次数:274
Good Substrings CodeForces - 271D
You've got string s, consisting of small English letters. Some of the English letters are good, the rest are bad. A substring s[l...r] (1?≤?l?≤?r?≤?|s ...
分类:其他好文   时间:2018-06-12 20:54:41    阅读次数:200
848.Shifting Letters——weekly contest 87
848. Shifting Letters 题目链接:https://leetcode.com/problems/shifting-letters/description/ 思路:O(N^2)复杂度过不了;先处理shifts, 从尾到头执行shifts[i] = sum(shifts[i+1]+.. ...
分类:其他好文   时间:2018-06-11 02:13:10    阅读次数:172
A - Word
Problem description Vasya is very upset that many people on the Net mix uppercase and lowercase letters in one word. That's why he decided to invent a ...
分类:其他好文   时间:2018-06-10 11:44:11    阅读次数:177
【刷题】SPOJ 1812 LCS2 - Longest Common Substring II
A string is finite sequence of characters over a non empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called fa ...
分类:其他好文   时间:2018-06-10 11:42:53    阅读次数:162
*389. Find the Difference (string + map(26)) read problems carefully
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:其他好文   时间:2018-06-09 00:09:17    阅读次数:170
830. Positions of Large Groups
In a string S of lowercase letters, these letters form consecutive groups of the same character. For example, a string like S = "abbxxxxzyy" has the g ...
分类:其他好文   时间:2018-06-08 21:55:26    阅读次数:151
leetcode 459. Repeated Substring Pattern
Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a ...
分类:其他好文   时间:2018-06-08 00:33:30    阅读次数:253
1345条   上一页 1 ... 30 31 32 33 34 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!