题目: 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 ...
分类:
其他好文 时间:
2016-09-22 00:57:54
阅读次数:
173
Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note: n is positive and will fit within the range of a 32-b ...
分类:
其他好文 时间:
2016-09-21 11:24:56
阅读次数:
131
FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers t ...
分类:
其他好文 时间:
2016-09-20 19:36:19
阅读次数:
220
题目: 给定一个数字字符串,返回数字所能代表的所有字母组合; 举例: Input:Digit string "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. 解题思路: 1. 首先要判断给定的数字字符串是否合法( ...
分类:
其他好文 时间:
2016-09-17 21:42:43
阅读次数:
130
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 a ...
分类:
其他好文 时间:
2016-09-17 00:15:54
阅读次数:
145
解决本题使用数学中的快速幂取余: 该方法总结挺好的:具体参考http://www.cnblogs.com/PegasusWang/archive/2013/03/13/2958150.html #include<iostream> #include<cmath> using namespace st ...
分类:
Web程序 时间:
2016-09-16 19:48:57
阅读次数:
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 telepho ...
分类:
其他好文 时间:
2016-09-16 10:12:49
阅读次数:
141