码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
(DP)3.Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo ...
分类:其他好文   时间:2016-04-11 07:10:54    阅读次数:133
think python chapter2
1、An assignment statement creates a new variable and gives it a value: Variable names can be as long as you like. They can contain both letters and nu ...
分类:编程语言   时间:2016-04-10 17:51:27    阅读次数:162
lintcode-medium-Sort Letters by Case
Given a string which contains only letters. Sort it by lower case first and upper case second. Notice It's NOT necessary to keep the original order of ...
分类:其他好文   时间:2016-04-06 08:10:40    阅读次数:143
zoj 1027 Human Gene Functions
It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four letters, A, C, G, ...
分类:其他好文   时间:2016-04-06 00:32:19    阅读次数:216
Bzoj 2789: [Poi2012]Letters 树状数组,逆序对
2789: [Poi2012]Letters Description 给出两个长度相同且由大写英文字母组成的字符串A、B,保证A和B中每种字母出现的次数相同。 现在每次可以交换A中相邻两个字符,求最少需要交换多少次可以使得A变成B。 给出两个长度相同且由大写英文字母组成的字符串A、B,保证A和B中每 ...
分类:编程语言   时间:2016-03-30 23:55:37    阅读次数:328
【LeetCode】91. Decode Ways
题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded me ...
分类:其他好文   时间:2016-03-30 22:12:44    阅读次数:147
[LeetCode]-algorithms-Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo ...
分类:其他好文   时间:2016-03-28 10:32:52    阅读次数:119
【python小练】0010
第 0010 题:使用 Python 生成类似于下图中的字母验证码图片 思路: 1. 随机生成字符串 2. 创建画布往上头写字符串 3. 干扰画面 code: Notes: 1. string.ascii_letters,大小写英文字母集合字符串 2. random.choice():Return ...
分类:编程语言   时间:2016-03-28 02:17:21    阅读次数:440
318. Maximum Product of Word Lengths
题目: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may a
分类:其他好文   时间:2016-03-21 01:35:31    阅读次数:202
17. Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho
分类:其他好文   时间:2016-03-14 18:51:51    阅读次数:165
1345条   上一页 1 ... 80 81 82 83 84 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!