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
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
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
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
2789: [Poi2012]Letters Description 给出两个长度相同且由大写英文字母组成的字符串A、B,保证A和B中每种字母出现的次数相同。 现在每次可以交换A中相邻两个字符,求最少需要交换多少次可以使得A变成B。 给出两个长度相同且由大写英文字母组成的字符串A、B,保证A和B中每 ...
分类:
编程语言 时间:
2016-03-30 23:55:37
阅读次数:
328
题目: 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
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
第 0010 题:使用 Python 生成类似于下图中的字母验证码图片 思路: 1. 随机生成字符串 2. 创建画布往上头写字符串 3. 干扰画面 code: Notes: 1. string.ascii_letters,大小写英文字母集合字符串 2. random.choice():Return ...
分类:
编程语言 时间:
2016-03-28 02:17:21
阅读次数:
440
题目: 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
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