2019年2月24日

摘要: Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead. Note:The sum of 阅读全文
posted @ 2019-02-24 05:57 一直走在路上 阅读(87) 评论(0) 推荐(0)
摘要: 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 there isn't 阅读全文
posted @ 2019-02-24 05:11 一直走在路上 阅读(134) 评论(0) 推荐(0)
摘要: Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I 阅读全文
posted @ 2019-02-24 03:20 一直走在路上 阅读(123) 评论(0) 推荐(0)
摘要: Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the product of all the elements in the s 阅读全文
posted @ 2019-02-24 01:06 一直走在路上 阅读(171) 评论(0) 推荐(0)

导航