Given an integer array arr and an integer k, find the maximum subarray sum in the array obtained by concatenating arr k times.
The subarray can be empty, which corresponds to a sum of
Since the answer may be very large, return the result modulo
Constraints:
arr.length
k
arr[i]
Given an integer array arr and an integer k, find the maximum subarray sum in the array obtained by concatenating arr k times.
The subarray can be empty, which corresponds to a sum of
Since the answer may be very large, return the result modulo
Constraints:
arr.length
k
arr[i]