码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
Plus One
Description: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...
分类:其他好文   时间:2015-06-17 00:26:35    阅读次数:166
Minimum Path Sum
Description:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its ...
分类:其他好文   时间:2015-06-17 00:25:03    阅读次数:185
LeetCode:Count Primes
Problem:Description:Count the number of prime numbers less than a non-negative number, n.Credits:Special thanks to @mithmatt for adding this problem a...
分类:其他好文   时间:2015-06-16 22:53:33    阅读次数:137
LeetCode2--AddTwoNumbers
题目: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 sing...
分类:其他好文   时间:2015-06-16 16:27:28    阅读次数:89
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-06-16 09:23:26    阅读次数:138
HDU3234&&UVA12232&&LA4487:Exclusive-OR(经典带权并查集)
Problem Description You are not given n non-negative integers X0, X1, ..., Xn-1 less than 220 , but they do exist, and their values never change. I'll gradually provide you some facts about them...
分类:其他好文   时间:2015-06-15 23:55:55    阅读次数:155
LeetCode: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-06-15 10:54:28    阅读次数:77
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). Find two ...
分类:其他好文   时间:2015-06-15 09:36:47    阅读次数:78
leetcode——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-06-14 18:36:43    阅读次数:102
【LeetCode】Basic Calculator 解题报告
【题目】 Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integer...
分类:其他好文   时间:2015-06-14 12:31:38    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!