摘要: 1 """ 2 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If ther 阅读全文
posted @ 2020-02-22 19:56 yawenw 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Your are given an array of positive integers nums. 3 Count and print the number of (contiguous) subarrays where the product of all the element 阅读全文
posted @ 2020-02-22 18:14 yawenw 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after 阅读全文
posted @ 2020-02-22 17:10 yawenw 阅读(122) 评论(0) 推荐(0) 编辑