码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
[leetcode] Plus One
Given a non-negative number represented as an array of digits, plus one to the number.
分类:其他好文   时间:2014-07-10 09:59:58    阅读次数:196
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...
分类:其他好文   时间:2014-07-08 14:21:56    阅读次数:190
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 ...
分类:其他好文   时间:2014-07-07 22:25:30    阅读次数:359
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...
分类:其他好文   时间:2014-07-06 16:11:35    阅读次数:170
Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the sequence of...
分类:其他好文   时间:2014-07-04 07:35:58    阅读次数:215
[LeetCode] 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...
分类:其他好文   时间:2014-07-03 11:53:07    阅读次数:182
[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 hist...
分类:其他好文   时间:2014-07-03 11:09:35    阅读次数:185
Leetcode:Gray Code 格雷码
Gray Code:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the ...
分类:其他好文   时间:2014-07-01 12:42:16    阅读次数:192
[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 digit. Add the two numbers and return it a...
分类:其他好文   时间:2014-07-01 09:11:07    阅读次数:206
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...
分类:其他好文   时间:2014-06-30 11:10:34    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!