码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
UVA - 993 - Product of digits (简单贪心)
993 Product of digits For a given non-negative integer number N, ?nd the minimal natural Q such that the product of all digits of Q is equal N. Input The ?rst line of input contains one po...
分类:其他好文   时间:2015-04-02 09:11:13    阅读次数:219
[LeetCode]Plus One
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. 解题思路:...
分类:其他好文   时间:2015-04-02 01:20:13    阅读次数:152
leetcode_num179_Largest Number
Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. 两两比较 可以利用sort函数来排序,自定义comp...
分类:其他好文   时间:2015-04-01 19:59:41    阅读次数:120
【贪婪算法、动态规划】Jump Game II
题目:leetcode Jump Game II   Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump...
分类:编程语言   时间:2015-04-01 17:50:59    阅读次数:200
leetcode || 55、Jump Game
problem: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that...
分类:其他好文   时间:2015-04-01 11:25:02    阅读次数:110
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 the head of the list. 题意:大数加法。 class Soluti...
分类:其他好文   时间:2015-03-30 16:33:20    阅读次数:91
leetcode || 45、 Jump Game II
problem: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that posi...
分类:其他好文   时间:2015-03-30 11:19:34    阅读次数:93
LeetCode-Multiply Strings实现大数的乘法
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 题目当中主要是需要两个大数的乘法,一般大数都是用字符串进行保存 代码比较...
分类:其他好文   时间:2015-03-29 19:35:52    阅读次数:133
leetcode------Jump Game
标题:Jump Game通过率:27.3%难度:中等Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the ar...
分类:其他好文   时间:2015-03-29 17:52:07    阅读次数:125
leetcode------Jump Game II
标题:Jump Game II通过率:24.5难度:难Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the a...
分类:其他好文   时间:2015-03-29 17:47:45    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!