摘要: Problem: Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't on 阅读全文
posted @ 2017-01-02 13:29 SillyVicky 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Problem: A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return 阅读全文
posted @ 2017-01-02 11:24 SillyVicky 阅读(116) 评论(0) 推荐(0) 编辑