摘要:
Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/spac... 阅读全文
posted @ 2015-06-26 23:37
`Liok
阅读(409)
评论(0)
推荐(0)
摘要:
Javascript中的Math.max方法可以求出给定参数中最大的数。> Math.max('1','2','3.1','3.2') Math.min(1,0,-1) Math.max.apply(null, ['1','2','3.1','3.2']) Math.min.apply(null, ... 阅读全文
posted @ 2015-06-26 15:35
`Liok
阅读(10189)
评论(0)
推荐(0)
摘要:
Summary RangesGiven 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",... 阅读全文
posted @ 2015-06-26 10:29
`Liok
阅读(379)
评论(0)
推荐(0)

浙公网安备 33010602011771号