题目: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-12-03 07:11:38
阅读次数:
145
基本正则表达式:REGularEXPression(REGEXP)一、元字符:.:匹配任意单个字符;[]:匹配指定范围内的任意单个字符;[^]:匹配指定范围外的任意单个字符。PS:常用字符集合[:digit:]——数字集合[:lower:]——小写字母集合[:upper:]——大写字母集合[:space:]——空格[:alpha:..
分类:
其他好文 时间:
2015-12-02 18:52:01
阅读次数:
126
题目: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,Retur...
分类:
其他好文 时间:
2015-11-28 12:01:13
阅读次数:
129
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-11-28 11:50:50
阅读次数:
125
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-11-27 23:35:14
阅读次数:
174
问题:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telep...
分类:
其他好文 时间:
2015-11-27 14:57:24
阅读次数:
158
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-11-26 14:43:22
阅读次数:
120
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Discuss: 1.If the integer's last digit is 0, what should the ...
分类:
其他好文 时间:
2015-11-24 22:01:04
阅读次数:
112
题目描述:(链接)Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is ...
分类:
其他好文 时间:
2015-11-20 12:19:27
阅读次数:
154
Add Two NumbersYou have two numbers represented by a linked list, where each node contains a single digit. The digits are stored inreverseorder, such ...
分类:
其他好文 时间:
2015-11-17 12:52:20
阅读次数:
180