码迷,mamicode.com
首页 >  
搜索关键字:plus-one    ( 245个结果
66. Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2017-10-14 21:14:06    阅读次数:144
[leetcode] 66. Plus One 解题报告
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2017-09-26 01:05:35    阅读次数:101
Plus One
这道题为简单题 题目: 思路: 我的思路:用变量jin代表需要进位,倒序遍历列表,如果该元素加1等于10,那么该元素变为0,jin=1,如果遍历到最后一个元素等于10,那么还需要在列表索引0插入元素1,否则如果该元素加上jin不等于10,那么直接在该元素上加上1即可,jin=0 大神:遍历列表,把列 ...
分类:其他好文   时间:2017-09-22 00:51:41    阅读次数:114
[leetcode] 66. Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2017-09-19 23:11:55    阅读次数:320
LeetCode-day01&02
感觉还好,坚持住就行,毕竟智商不够 1. Length of Last Word求一个数组的最后一个单词的长度 2. Plus One 大数加1 3. Add Binary 二进制加法 4. Sqrt(x) 求一个数的开方 5. Valid Perfect Square 求正方形的边的长度 6. S ...
分类:其他好文   时间:2017-09-13 09:20:31    阅读次数:175
【LeetCode】066. Plus One
题目: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any le ...
分类:其他好文   时间:2017-09-07 23:04:30    阅读次数:160
[LeetCode] Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2017-08-26 22:48:46    阅读次数:206
LeetCode 66 Plus One(加一)(vector)
翻译 给定一个以一系列数字表示的非负数。将其加一并转换成数字。 数字存储的最高位在列的最前面。 原文 Given a non-negative number represented as an array of digits, plus one to the number. The digits a ...
分类:其他好文   时间:2017-08-03 14:57:52    阅读次数:172
[leetcode]66Plus One
/** * Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any ... ...
分类:其他好文   时间:2017-07-28 18:20:45    阅读次数:135
LeetCode 66. Plus One(加1)
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2017-07-23 10:10:14    阅读次数:133
245条   上一页 1 ... 4 5 6 7 8 ... 25 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!