Given an integer array nums and an integer k, find the maximum sum of a non empty subarray of nums such that the length of the subarray is divisible by k.
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
k nums.length
nums[i]
Given an integer array nums and an integer k, find the maximum sum of a non empty subarray of nums such that the length of the subarray is divisible by k.
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
k nums.length
nums[i]