You are given a coins and an integer k. Each element coins[i]
You want to collect coins from a sequence of k consecutive bags.
Return the maximum total number of coins you can collect from any window of k consecutive bags.
Constraints:
coins.length
k
coins[i]
The given segments do not overlap.
You are given a coins and an integer k. Each element coins[i]
You want to collect coins from a sequence of k consecutive bags.
Return the maximum total number of coins you can collect from any window of k consecutive bags.
Constraints:
coins.length
k
coins[i]
The given segments do not overlap.