码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
[LeetCode]Sum Root to Leaf Numbers
题目描述:(链接)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
[lintcode medium] Delete digits
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
【数组处理】66
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
C语言位域浅析
位段(bit-field)是以位为单位来定义结构体(或联合体)中的成员变量所占的空间。含有位段的结构体(联合体)称为位段结构。采用位段结构既能够节省空间,又方便于操作。 位段的定义格式为: type [var]:digits 其中: type只能为int,unsigned int,sig...
分类:编程语言   时间:2015-12-17 06:53:46    阅读次数:219
LeetCode 66:Plus One
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 Integer leetcode java
问题描述: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
Plus One leetcode java
问题描述: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
LeetCode 2 Add Two Numbers(链表操作)
题目来源: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
[Math]Reverse Integer
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
[LeetCode]Plus One
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!