码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
LeetCode 2 Add Two Numbers
You are giventwo linked lists representing two non-negative numbers. The digits are storedin reverse order and each of their nodes contain a single digit. Add the twonumbers and return it as a linked ...
分类:其他好文   时间:2015-07-21 12:53:28    阅读次数:121
LeetCode42: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,1,2,1]...
分类:移动开发   时间:2015-07-20 19:45:52    阅读次数:175
LeetCode227:Basic Calculator II
Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer division should trunca...
分类:其他好文   时间:2015-07-20 19:41:19    阅读次数:111
LeetCode11: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-07-20 19:39:27    阅读次数:103
[LeetCode][Java] 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 wi...
分类:编程语言   时间:2015-07-19 13:35:37    阅读次数:128
[LeetCode]233.Number of Digit One
题目Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example: Given n = 13, Return 6, because digit 1 occurred in the following n...
分类:其他好文   时间:2015-07-19 11:54:24    阅读次数:102
LeetCode.002 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-07-18 21:14:50    阅读次数:134
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 or right at...
分类:其他好文   时间:2015-07-17 19:03:12    阅读次数:109
leetCode 66.Plus One (+1问题) 解题思路和方法
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 the head of the list. 思路:...
分类:其他好文   时间:2015-07-17 19:00:08    阅读次数:134
[LeetCode][Java] 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 ...
分类:编程语言   时间:2015-07-17 12:11:33    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!