码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
【leetcode刷题笔记】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...
分类:其他好文   时间:2014-07-21 10:00:12    阅读次数:185
【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->3which rep...
分类:其他好文   时间:2014-07-18 20:09:38    阅读次数:433
[leetcode]Plus One
Plus OneGiven 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...
分类:其他好文   时间:2014-07-18 16:17:10    阅读次数:249
LeetCode :: Sum Root to Leaf Numbers [tree、dfs]
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the to...
分类:其他好文   时间:2014-07-18 11:13:57    阅读次数:204
[leetcode]Reverse Integer
Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about th...
分类:其他好文   时间:2014-07-18 09:34:59    阅读次数:212
电话号码位数字符串匹配
(Message App)The app just take the last 7 digits from a contact, then it does not create a converstion with the name of the contact that you are texti...
分类:其他好文   时间:2014-07-16 21:43:29    阅读次数:203
[leetcode]Restore IP Addresses
Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"255255...
分类:其他好文   时间:2014-07-16 18:03:41    阅读次数:157
Find the smallest number whose digits multiply to a given number n
Given a number ‘n’, find the smallest number ‘p’ such that if we multiply all digits of ‘p’, we get ‘n’. The result ‘p’ should have minimum two digits...
分类:其他好文   时间:2014-07-16 08:55:04    阅读次数:208
【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->3which r...
分类:其他好文   时间:2014-07-15 23:21:33    阅读次数:218
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2014-07-13 18:20:52    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!