码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
[leetcode] Plus One
Plus One  Total Accepted: 34829 Total Submissions: 111864My Submissions Question  Solution  Given a non-negative number represented as an array of digits, plus one to the number. Th...
分类:其他好文   时间:2015-02-05 11:26:14    阅读次数:186
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 ...
分类:其他好文   时间:2015-02-05 10:56:24    阅读次数:173
C++]LeetCode: 133 Largest Rectangle in Histogram(最大矩形面积)
题目: 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 histogram. Above is a histogram where ...
分类:编程语言   时间:2015-02-05 09:41:47    阅读次数:206
Leetcode: 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 may be ve...
分类:其他好文   时间:2015-02-04 23:30:48    阅读次数:420
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...
分类:其他好文   时间:2015-02-04 21:39:11    阅读次数:115
[LeetCode]64.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 o...
分类:其他好文   时间:2015-02-04 16:34:20    阅读次数:140
PAT1005.Spell It Right
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat...
分类:其他好文   时间:2015-02-04 16:10:53    阅读次数:149
[C++]LeetCode: 131 Trapping Rain Water (双边扫描)
题目: 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...
分类:移动开发   时间:2015-02-04 13:08:10    阅读次数:256
Restoring Numbers
D. Restoring NumbersVasya had two arrays consisting of non-negative integers:aof sizenandbof size...
分类:其他好文   时间:2015-02-03 19:00:19    阅读次数:112
[LeetCode]Add Two Numbers
Q: 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 ...
分类:其他好文   时间:2015-02-02 23:06:26    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!