码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
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-01-04 16:42:46    阅读次数:150
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 as a link...
分类:其他好文   时间:2015-01-01 18:35:47    阅读次数:184
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-12-31 20:13:44    阅读次数:165
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-31 20:11:16    阅读次数:231
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 as a link...
分类:其他好文   时间:2014-12-31 11:23:10    阅读次数:154
LeetCode--Plus One
这个题目与java里的BigInteger实现有些类似,可以参考其源码。 题目: 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 a...
分类:其他好文   时间:2014-12-29 21:24:42    阅读次数:190
leetcode 【Rotate List 】python 实现
题目: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.代码...
分类:编程语言   时间:2014-12-27 00:14:19    阅读次数:332
LeetCode: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-12-26 11:12:15    阅读次数:117
[leetcode] Grey Code
题目:(Backtracking)The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting...
分类:其他好文   时间:2014-12-26 00:54:18    阅读次数:213
[leetcode] Jump Game
Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents yo...
分类:其他好文   时间:2014-12-25 14:17:40    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!