码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
Leetcode 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 telephon...
分类:其他好文   时间:2014-06-25 09:15:12    阅读次数:362
获得N位数字字母随机组合
import stringimport randomdef get_rand(n): allw = string.letters+string.digits r = [] for i in range(n): r.append(random.choice(allw)) ...
分类:其他好文   时间:2014-06-24 13:51:24    阅读次数:320
Codeforces Round #253 (Div. 2) A. Anton and Letters
题目很简单,只需要注意带空格的输入用getline即可#include #include #include #include #include using namespace std;int main(){ string str; getline(cin,str); set a; ...
分类:其他好文   时间:2014-06-21 14:29:06    阅读次数:200
Checkio: Roman numerals
题目: Roman numerals come from the ancient Roman numbering system. They are based on specific letters of the alphabet which are combined to signify the sum (or, in some cases, the difference) of th...
分类:其他好文   时间:2014-06-20 12:27:09    阅读次数:394
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 telephone buttons) is given below. In...
分类:其他好文   时间:2014-06-18 12:03:16    阅读次数:227
[LeetCode] Decode Ways [33]
题目 A message containing letters from A-Z is being encoded to numbers using the following mapping: 原题链接(点我) 解题思路及代码; 解码方法数量问题。英文26个字母对应1到26,给一串数字,问翻译为字母有多少种方法? 这个题第一思路是想到使用组合排列的方法,穷举所有的可能。很好,写出如下代码... 但是提交后出来的结果是超时。 再想想,使用动态规划的方法来做。 对于串s[0...i]的解码数量应该和s[0.....
分类:其他好文   时间:2014-06-13 20:44:04    阅读次数:292
leetcode——Longest Substring Without Repeating Characters 求链表中无重复字符的最大字串长度(AC)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2014-06-08 16:27:47    阅读次数:231
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 message containing digits, determine ...
分类:其他好文   时间:2014-06-08 15:30:08    阅读次数:182
[LeetCode] Longest Substring Without Repeating Characters [15]
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length...
分类:其他好文   时间:2014-06-08 03:06:52    阅读次数:221
【Leetcode】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 telephon...
分类:其他好文   时间:2014-06-06 17:50:38    阅读次数:284
1345条   上一页 1 ... 131 132 133 134 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!