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-09-16 00:05:09
阅读次数:
405
给定数组表示的十进制数,加一操作。结果依然用十进制的数组表示。这里主要注意最高位(digit[0])依然有进位,即溢出的情况。
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most si...
分类:
其他好文 时间:
2014-09-15 21:25:19
阅读次数:
236
题目:输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。def foo(a): l=len(a); letters=0; space=0; digit=0; others=0; for i in range(0,l): num=ord...
分类:
编程语言 时间:
2014-09-13 09:22:44
阅读次数:
228
/// /// 生成随机数字窜 /// /// 位数 /// private string RandomNum(int Digit) { StringBuilder sb = new St...
分类:
其他好文 时间:
2014-09-12 11:51:43
阅读次数:
188
1.基本正则表达式支持的元字符元字符描述用法举例.匹配任意一个字符。a.,x.y,x..,.ab.[]匹配指定范围内的任意字符。[abc],[0-9],[a-z],[A-Z],[[:alpha:]],[[digit:]],
[[:alnum:]],[[space:]],[[:upper:]],[[:lower:]],[[:punct:]][^]匹配指定范围以外的任意字符,即‘[]’的取..
分类:
其他好文 时间:
2014-09-10 12:42:51
阅读次数:
140
Alternating Sum
Time Limit: 2 Seconds Memory Limit: 65536 KB
There is a digit string S with infinite length. In addition, S is periodic and it can be formed by concatenating infinite re...
分类:
其他好文 时间:
2014-09-09 13:28:48
阅读次数:
210
Letter Combinations of a Phone Number
Total Accepted: 15964 Total
Submissions: 60700My Submissions
Given a digit string, return all possible letter combinations that the number could repr...
分类:
其他好文 时间:
2014-09-09 13:13:39
阅读次数:
191
Alternating Sum
Time Limit: 2 Seconds Memory Limit: 65536 KB
There is a digit string S with infinite length. In addition, S is periodic and it can be formed by concatenating infinite repeti...
分类:
其他好文 时间:
2014-09-09 13:10:58
阅读次数:
164
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-09-06 18:40:43
阅读次数:
224
Description
There is an interesting calculator. It has 3 rows of buttons.
Row 1: button 0, 1, 2, 3, ..., 9. Pressing each button appends that digit to the end of the display.
Row 2: button +0,...
分类:
其他好文 时间:
2014-09-06 12:31:03
阅读次数:
338