摘要:
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... 阅读全文
摘要:
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, ... 阅读全文
摘要:
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",... 阅读全文