码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
Leetcode 306. Additive Number
Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f ...
分类:其他好文   时间:2016-12-18 12:09:17    阅读次数:168
Leetcode-7 Reverse Integer
#7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 题解:暴力做,注意边界: ...
分类:其他好文   时间:2016-12-16 07:43:57    阅读次数:90
LeetCode172 Factorial Trailing Zeroes. LeetCode258 Add Digits. LeetCode268 Missing Number
数学题 172. Factorial Trailing Zeroes Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time c ...
分类:其他好文   时间:2016-12-13 23:06:35    阅读次数:200
Leetcode #2 Add two number
Q: 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 sing ...
分类:其他好文   时间:2016-12-13 08:10:34    阅读次数:148
Leetcode 题目整理-2 Reverse Integer && String to Integer
今天的两道题关于基本数据类型的探讨,估计也是要考虑各种情况,要细致学习 7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Hav ...
分类:其他好文   时间:2016-12-11 02:56:13    阅读次数:213
Leetcode 题目整理-2
今天的两道题关于基本数据类型的探讨,估计也是要考虑各种情况,要细致学习 7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Have ...
分类:其他好文   时间:2016-12-10 09:08:21    阅读次数:158
[LeetCode]423. Reconstruct Original Digits from English
Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp ...
分类:其他好文   时间:2016-12-10 06:59:14    阅读次数:203
ArrayEasyFinish
(1)Plus One 解题思路:模拟现实中做加法的方式,在个位加一,并考虑进位的情况。代码如下: 1 public class Solution { 2 public int[] plusOne(int[] digits) { 3 int carries = 1; 4 for (int i = d ...
分类:其他好文   时间:2016-12-06 13:19:40    阅读次数:225
Leetcode: Reconstruct Original Digits from English
# of '0': # of 'z' # of '2': # of 'w' 4: u 6: x 8: g 3: h - 8 5: f - 4 7: s - 6 1: o - 0 - 2 - 4 9: i - 5 - 6 - 8 我的code用了一个数组来存char count ...
分类:其他好文   时间:2016-12-05 09:30:45    阅读次数:251
369. Plus One Linked List
Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan ...
分类:其他好文   时间:2016-12-03 15:10:46    阅读次数:219
2164条   上一页 1 ... 82 83 84 85 86 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!