码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
Leetcode 动态规划 Trapping Rain Water
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Trapping Rain Water  Total Accepted: 14568 Total Submissions: 50810My Submissions Given n non-negative integers representin...
分类:移动开发   时间:2014-08-29 01:24:36    阅读次数:238
【leetcode】Jump Game I, II 跳跃游戏一和二
题目: Jump Game I: 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...
分类:其他好文   时间:2014-08-28 02:07:48    阅读次数:249
Jump Game II <LeetCode>
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 maximu...
分类:其他好文   时间:2014-08-28 00:47:28    阅读次数:263
LeetCode 44 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 length at that position. Your goal i...
分类:其他好文   时间:2014-08-27 18:45:28    阅读次数:228
leetcode之Gray Code
Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the cod...
分类:其他好文   时间:2014-08-27 14:45:48    阅读次数:236
【leetcode】Container With Most Water
题目: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) ...
分类:其他好文   时间:2014-08-27 09:29:57    阅读次数:174
Jump Game
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 maximu...
分类:其他好文   时间:2014-08-26 22:45:26    阅读次数:254
LeetCode 54 Jump Game
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 position. Determine if yo...
分类:其他好文   时间:2014-08-26 17:33:46    阅读次数:200
UVA - 1426 Discrete Square Roots (模方程)
Description A square root of a number x is a number r such that r2 = x. A discrete square root of a non-negative integer x is a non-negative integer r such that r2 x mod N , 0r < N , where ...
分类:其他好文   时间:2014-08-25 21:10:04    阅读次数:252
Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->...
分类:其他好文   时间:2014-08-25 20:56:14    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!