Home / LeetCode / 3413. Maximum Coins From K Consecutive Bags LeetCode3413. Maximum Coins From K Consecutive Bags January 7, 2025 Medium, Sliding Window Share this post on:
可能的情况:头部所在区间的值更大/尾部所在区间的值更大。因此要做两遍。