摘要: Maximum Gap Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains le 阅读全文
posted @ 2020-07-08 14:20 十三w~w 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Find Peak Element A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak e 阅读全文
posted @ 2020-07-08 12:08 十三w~w 阅读(94) 评论(0) 推荐(0) 编辑