码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
84. Largest Rectangle in Histogram *HARD* -- 求柱状图中的最大矩形面积
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:其他好文   时间:2016-08-24 19:19:06    阅读次数:197
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 digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2016-08-23 22:10:45    阅读次数:130
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 n ...
分类:其他好文   时间:2016-08-23 21:52:53    阅读次数:118
[LintCode] 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 a ...
分类:其他好文   时间:2016-08-22 07:08:14    阅读次数:168
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 array represents your maxim ...
分类:其他好文   时间:2016-08-20 16:22:49    阅读次数:186
Count Numbers with Unique Digits -- LeetCode
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10^n. Example:Given n = 2, return 91. (The answer should be the ...
分类:其他好文   时间:2016-08-19 14:48:51    阅读次数:96
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 p ...
分类:其他好文   时间:2016-08-16 13:15:44    阅读次数:138
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- ...
分类:其他好文   时间:2016-08-16 00:02:55    阅读次数:164
H-Index II -- LeetCode
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According ...
分类:其他好文   时间:2016-08-14 07:52:22    阅读次数:91
204. Count Primes
Description: Count the number of prime numbers less than a non-negative number, n. Credits:Special thanks to @mithmatt for adding this problem and cre ...
分类:其他好文   时间:2016-08-13 19:29:34    阅读次数:188
2271条   上一页 1 ... 86 87 88 89 90 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!