Add DigitsGiven a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is...
分类:
其他好文 时间:
2015-08-16 15:11:22
阅读次数:
80
[LeetCode 179] Largest Number|COMMENTSQuestionlinkGiven a list of non negative integers, arrange them such that they form the largest number.For examp...
分类:
其他好文 时间:
2015-08-16 13:43:54
阅读次数:
144
Number of Digit OneGiven an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Gi...
分类:
其他好文 时间:
2015-08-16 13:41:46
阅读次数:
124
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...
分类:
其他好文 时间:
2015-08-14 15:16:01
阅读次数:
93
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-08-14 11:45:41
阅读次数:
88
题目:最大的盛水容器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). Fi...
分类:
其他好文 时间:
2015-08-13 18:00:02
阅读次数:
103
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)...
分类:
其他好文 时间:
2015-08-11 23:49:14
阅读次数:
357
Problem 1862 QueryProblem Accept: 100Submit: 249Time Limit: 2000 mSecMemory Limit : 32768 KB Problem DescriptionThere are N numbers (non-negative int....
分类:
其他好文 时间:
2015-08-11 23:04:01
阅读次数:
130
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-08-10 00:24:55
阅读次数:
93
1、题目名称 Largest Number(求整型数组中各元素可拼合成的最大数字) 2、题目地址 https://leetcode.com/problems/largest-number/ 3、题目内容 英文:Given a list of non negative integers, arrange them s...
分类:
其他好文 时间:
2015-08-08 18:32:33
阅读次数:
174