码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
LeetCode2——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 li...
分类:其他好文   时间:2015-02-27 11:54:33    阅读次数:125
[LeetCode] Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2015-02-25 21:03:31    阅读次数:101
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 tha...
分类:其他好文   时间:2015-02-23 16:38:13    阅读次数:141
hdu3709 数位dp(自身平衡的数字)
http://acm.hdu.edu.cn/showproblem.php?pid=3709 Problem Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagi...
分类:其他好文   时间:2015-02-22 23:06:28    阅读次数:194
hdu3652---B-number(数位dp)
Problem Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string “13” and can be divided by 13. For example, 130 and 2613 are wqb-numbers,...
分类:其他好文   时间:2015-02-22 15:49:05    阅读次数:166
Leetcode: Trapping Rain Water
Problem: 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,...
分类:移动开发   时间:2015-02-22 14:39:33    阅读次数:144
Leetcode: Multiply Strings
Problem: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. Solution: multiply...
分类:其他好文   时间:2015-02-22 14:38:15    阅读次数:101
leetcode -- Largest Number
原题: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result ma...
分类:其他好文   时间:2015-02-21 22:19:37    阅读次数:169
LeetCode-55 Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2015-02-20 17:25:33    阅读次数:95
LeetCode[Sort]: Largest Number
LeetCode[Sort]: Largest Number Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 953433...
分类:其他好文   时间:2015-02-17 21:08:13    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!