码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
[LeetCode 45] Jump Game II
题目链接:jump-game-ii 相似题型: [LeetCode 55] Jump Game /** * Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the arra...
分类:其他好文   时间:2015-03-29 15:12:29    阅读次数:105
[LeetCode 55] Jump Game
题目链接: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 ...
分类:其他好文   时间:2015-03-29 13:40:39    阅读次数:126
Leetcode解题-链表(2.2.6)RotateList
1 题目:Rotate ListGiven a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->nullptr and k = 2, return 4->5->1->2->3->nullptr.2 实现首先确定题目要求的旋转都需要哪些结点...
分类:其他好文   时间:2015-03-28 11:33:32    阅读次数:124
LeetCdoe Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at...
分类:其他好文   时间:2015-03-28 10:15:14    阅读次数:116
[LeetCode 11] Container With Most Water
题目链接: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 endpoi...
分类:其他好文   时间:2015-03-28 08:59:02    阅读次数:147
Leetcode解题-链表(2.2.1)AddTwoNumbers
1 题目:2.2.1 Add Two NumbersYou 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 numbe...
分类:其他好文   时间:2015-03-28 08:48:00    阅读次数:185
[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 maximu...
分类:其他好文   时间:2015-03-28 06:26:00    阅读次数:105
[LeetCode 42] Trapping Rain Water
题目链接:trapping-rain-water import java.util.Stack; /** * Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to...
分类:移动开发   时间:2015-03-27 22:22:39    阅读次数:158
LeetCode 179: 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 form...
分类:其他好文   时间:2015-03-22 01:38:59    阅读次数:105
LeetCode 2: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 ...
分类:其他好文   时间:2015-03-21 21:08:04    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!