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
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
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
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
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
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
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
原题:
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
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
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