Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2.Note:The length of both num1 and num2 is = 0 || ca... ...
分类:
其他好文 时间:
2017-01-11 07:51:13
阅读次数:
275
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 endpo ...
分类:
其他好文 时间:
2017-01-10 13:18:57
阅读次数:
153
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. ...
分类:
其他好文 时间:
2017-01-09 10:54:46
阅读次数:
162
系统格式另存为会报错:异常信息(异常类型:System.ArgumentOutOfRangeException)异常提示:索引超出范围,请联系管理员处理异常信息:Index was out of range. Must be non-negative and less than the size o ...
分类:
其他好文 时间:
2017-01-09 00:32:29
阅读次数:
275
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 maxim ...
分类:
其他好文 时间:
2017-01-07 07:53:17
阅读次数:
154
Problem: Count the number of prime numbers less than a non-negative number, n. Summary: 判断小于某非负数n的质数个数。 Solution: 用所谓的“刷质数表”的方式先用HashTable记录小于n的所有数是质数 ...
分类:
其他好文 时间:
2017-01-04 10:36:21
阅读次数:
196
Problem: 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 d ...
分类:
其他好文 时间:
2017-01-01 08:45:05
阅读次数:
201
需要注意overflow,特别是Integer.MIN_VALUE这个数字。 需要掌握二分法。 不用除法的除法,分而治之的乘方 2. Add Two Numbers You are given two linked lists representing two non-negative number ...
分类:
其他好文 时间:
2016-12-28 12:29:07
阅读次数:
198
You are given two linked lists representing two non-negative numbers. The most significant digit comes first and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-12-24 02:19:11
阅读次数:
205
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 ...
分类:
其他好文 时间:
2016-12-23 01:19:30
阅读次数:
137