码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
Solve equation
Description You are given two positive integers A and B in Base C. For the equation: A=k*B+d We know there always existing many non-negative pairs (k, d) that satisfy the equation above. Now...
分类:其他好文   时间:2014-12-16 21:05:09    阅读次数:244
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-12-16 08:40:59    阅读次数:224
leetcode. Minimum Path Sum
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:其他好文   时间:2014-12-14 17:07:20    阅读次数:357
Add Two Numbers -- leetcode
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...
分类:其他好文   时间:2014-12-12 15:01:52    阅读次数:137
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 si...
分类:其他好文   时间:2014-12-11 15:35:50    阅读次数:124
[LeetCode] Rotate List 单项链表旋转
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.Hide ...
分类:其他好文   时间:2014-12-11 13:56:55    阅读次数:151
[leetcode] Minimum Path Sum
Minimum Path SumGiven amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along ...
分类:其他好文   时间:2014-12-11 12:02:43    阅读次数:125
FZU2108:Mod problem(数学)
Problem Description Given one non-negative integer A and one positive integer B, it’s very easy for us to calculate A Mod B. Here A Mod B means the remainder of the answer after A is divided by B. ...
分类:其他好文   时间:2014-12-10 16:20:17    阅读次数:238
【LeetCode】Rotate List
Rotate ListGiven a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3-...
分类:其他好文   时间:2014-12-10 15:45:41    阅读次数:110
【LeetCode】Plus One (2 solutions)
Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig...
分类:其他好文   时间:2014-12-10 00:23:51    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!