摘要:
Given a sorted integer array without duplicates, return the summary of its ranges.For example, given[0,1,2,4,5,7], return["0->2","4->5","7"].本题我采用的是最直... 阅读全文
posted @ 2015-07-24 11:17
朱传林
阅读(132)
评论(0)
推荐(0)
摘要:
Description:Count the number of prime numbers less than a non-negative number,n.判断一个数是否是质数主要有以下几种方法:1)直接用该数除于所有小于它的数(非0,1),如果均不能被它整除,则其是质数;2)除以小于它一半的数... 阅读全文
posted @ 2015-07-24 09:58
朱传林
阅读(146)
评论(0)
推荐(0)
摘要:
Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 ... 阅读全文
posted @ 2015-07-24 08:51
朱传林
阅读(192)
评论(0)
推荐(0)

浙公网安备 33010602011771号