← ALL NOTES
Array

3381. Maximum Subarray Sum With Length Divisible by K

Given an array nums and a number k. Find the maximum sum of a non-empty subarray whose length is divisible by k.

Loading…