码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
[C++]LeetCode: 108 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 ...
分类:编程语言   时间:2015-01-18 18:38:24    阅读次数:275
Trapping Rain Water -- leetcode
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 trap after raining. For example,  Given [0,1,0,2,1,0,1,3,2,1,2,1]...
分类:移动开发   时间:2015-01-18 17:12:30    阅读次数:165
[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 formed number is 9534330. Note: The result...
分类:其他好文   时间:2015-01-18 14:27:55    阅读次数:234
【原创】leetCodeOj --- Largest Number 解题报告
原题地址:https://oj.leetcode.com/problems/largest-number/题目内容:Given a list of non negative integers, arrange them such that they form the largest number.F...
分类:其他好文   时间:2015-01-18 02:01:27    阅读次数:237
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) and (i, 0). Fin...
分类:其他好文   时间:2015-01-17 23:33:30    阅读次数:190
【leetcode】Add Two Numbers(middle) ☆
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-01-17 22:12:46    阅读次数:168
[C++]LeetCode: 104 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...
分类:编程语言   时间:2015-01-17 18:12:27    阅读次数:239
[C++]LeetCode: 103 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. Dete...
分类:编程语言   时间:2015-01-17 13:59:48    阅读次数:200
[LeetCode#89]Gray Code
The problem:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the ...
分类:其他好文   时间:2015-01-17 06:19:58    阅读次数:177
Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.注意下k>...
分类:其他好文   时间:2015-01-16 23:39:21    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!