Add DigitsDiscription:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example: Givennum = 38, ....
分类:
其他好文 时间:
2015-10-22 13:59:54
阅读次数:
195
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Given n = 13,Return...
分类:
编程语言 时间:
2015-10-20 21:02:04
阅读次数:
180
1217. Unlucky TicketsTime limit: 1.0 secondMemory limit: 64 MBStrange people live in Moscow! Each time in the bus, getting a ticket with a 6-digit num...
分类:
其他好文 时间:
2015-10-19 22:29:45
阅读次数:
251
翻译给定一个数字字符串,返回所有这些数字可以表示的字母组合。一个数字到字母的映射(就像电话按钮)如下图所示。输入:数字字符串“23”
输出:["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]备注:尽管以上答案是无序的,如果你想的话你的答案可以是有序的。原图原文Given a digit string, return all possible...
分类:
其他好文 时间:
2015-10-18 11:27:43
阅读次数:
272
基本正则表达式匹配字符:.:匹配任意单个字符。[]:匹配指定范围内的字符[::]:字符集[:space:]空格字符[:lower:]小写字母[:upper:]大写字母[:alpha:]大小写字母[:digit:]数字[:alnum:]数字和大小写字母[^]:匹配指定范围外的字符匹配次数:*:匹配该符号前字符任意次。.*:匹配任..
分类:
其他好文 时间:
2015-10-16 15:25:51
阅读次数:
252
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...
分类:
其他好文 时间:
2015-10-13 01:34:13
阅读次数:
223
[Problem]Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the...
分类:
其他好文 时间:
2015-10-10 00:25:21
阅读次数:
202
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit. For example: Givennum = 38, the process is lik...
分类:
其他好文 时间:
2015-10-07 18:45:24
阅读次数:
173
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
其他好文 时间:
2015-10-06 18:07:20
阅读次数:
160
#include #include #define DIGIT 4#define DEPTH 10000#define MAX 100using namespace std;typedef int bignum_t[MAX+1];int read(bignum_t a,istre...
分类:
其他好文 时间:
2015-10-05 12:51:05
阅读次数:
232