上一页 1 ··· 5 6 7 8 9 10 下一页

2019年3月2日

摘要: A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if: For i <= k < j, A[k] > A[k+1] when k is odd, and A[k] < A[k+1] when k 阅读全文
posted @ 2019-03-02 18:24 一直走在路上 阅读(229) 评论(0) 推荐(0)

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)

2019年2月22日

摘要: Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that 阅读全文
posted @ 2019-02-22 08:31 一直走在路上 阅读(134) 评论(0) 推荐(0)
摘要: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: Idea 1. 阅读全文
posted @ 2019-02-22 07:11 一直走在路上 阅读(138) 评论(0) 推荐(0)

2019年2月20日

摘要: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2019-02-20 00:55 一直走在路上 阅读(133) 评论(0) 推荐(0)

2019年2月18日

摘要: Given an array consisting of n integers, find the contiguous subarray whose length is greater than or equal to k that has the maximum average value. A 阅读全文
posted @ 2019-02-18 02:41 一直走在路上 阅读(160) 评论(0) 推荐(0)

2019年2月17日

摘要: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the 阅读全文
posted @ 2019-02-17 22:13 一直走在路上 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页

导航