Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words ...
Given an integer arrayarr, you should partition the array into contiguous subarrays of length at mostk. After partitioning, each subarray has their values changed to become the maximum value of that ...
2021-03-01 08:51 1 258 推薦指數:
Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words ...
Given a circular array C of integers represented by `A`, find the maximum possible sum of a non-empty subarray of C. Here, a circular array means ...
In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want ...
Given an array A of non-negative integers, return the maximum sum of elements in two non-overlapping (contiguous) subarrays, which have lengths L ...
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum ...
Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example ...
array will be [1, 2, 1, 2, 1, 2]. Return the maximum ...
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 ...