题目描述:(链接)Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3...
分类:
其他好文 时间:
2015-12-20 12:57:00
阅读次数:
149
Delete DigitsGiven string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged...
分类:
其他好文 时间:
2015-12-18 06:56:35
阅读次数:
263
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-12-17 12:54:15
阅读次数:
146
位段(bit-field)是以位为单位来定义结构体(或联合体)中的成员变量所占的空间。含有位段的结构体(联合体)称为位段结构。采用位段结构既能够节省空间,又方便于操作。 位段的定义格式为: type [var]:digits 其中: type只能为int,unsigned int,sig...
分类:
编程语言 时间:
2015-12-17 06:53:46
阅读次数:
219
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.
//题意:一个整数按位存储于一个int数...
分类:
其他好文 时间:
2015-12-17 01:52:04
阅读次数:
231
问题描述:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321分析:将一个整数逆序输出,需要判断是否越界。Integer.MAX_VALUE,Integer.MIN_VALUE,...
分类:
编程语言 时间:
2015-12-16 17:11:35
阅读次数:
149
问题描述: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 ...
分类:
编程语言 时间:
2015-12-16 17:03:48
阅读次数:
151
题目来源:https://leetcode.com/problems/add-two-numbers/You are given two linked lists representing two non-negative numbers. The digits are stored in reve...
分类:
其他好文 时间:
2015-12-15 22:49:47
阅读次数:
253
Total Accepted:111287Total Submissions:474471Difficulty:EasyReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321cli...
分类:
其他好文 时间:
2015-12-13 20:24:04
阅读次数:
204
public class Solution { public int[] plusOne(int[] digits) { int carry = 1; int length = digits.length; List list = new ArrayL...
分类:
其他好文 时间:
2015-12-11 13:11:31
阅读次数:
142