摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr... 阅读全文
posted @ 2015-10-04 22:53 AprilCheny 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 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"].解法:(1)初始化... 阅读全文
posted @ 2015-10-04 10:17 AprilCheny 阅读(179) 评论(0) 推荐(0) 编辑