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-09-22 06:38:14
阅读次数:
144
1、题目名称 Plus One(数字加一) 2、题目地址 https://leetcode.com/problems/plus-one 3、题目内容 英文:Given a non-negative number represented as an array of digits, plus one to the number. The digi...
分类:
其他好文 时间:
2015-09-17 23:29:56
阅读次数:
409
Question: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 di...
分类:
其他好文 时间:
2015-09-14 19:14:51
阅读次数:
132
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-09-13 13:16:00
阅读次数:
122
一道高精度计算的题,从低位到高位进行计算,同时考虑进位的问题,若最高位计算结果还有进位,就需要在最高位前面添加一位。可做到时间复杂度为O(n),空间复杂度为O(1)。...
分类:
其他好文 时间:
2015-09-11 14:31:00
阅读次数:
144
QuestionGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig...
分类:
其他好文 时间:
2015-09-11 06:45:53
阅读次数:
193
题目: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...
分类:
其他好文 时间:
2015-08-25 16:14:55
阅读次数:
190
题目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 the head of the list.分析该题目要求:将一整数按位存储在vector中,对其...
分类:
其他好文 时间:
2015-08-18 16:19:01
阅读次数:
129
l leetcode 21_Merge Two Sorted Lists
题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes
of the first two lists.
解法:
#includ...
分类:
其他好文 时间:
2015-08-17 01:11:55
阅读次数:
161
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-08-14 15:16:01
阅读次数:
93