862.shortest-subarray-with-sum-at-least-k.pdf
68.9 KB
leetcode.cn 2022-10-26
🔴862.shortest-subarray-with-sum-at-least-k
🏷️ Tags
#queue #array #binary_search #prefix_sum #sliding_window #monotonic_queue #heap_priority_queue
🔴862.shortest-subarray-with-sum-at-least-k
🏷️ Tags
#queue #array #binary_search #prefix_sum #sliding_window #monotonic_queue #heap_priority_queue
1687.delivering-boxes-from-storage-to-ports.pdf
113.3 KB
leetcode.cn 2022-12-05
🔴1687.delivering-boxes-from-storage-to-ports
🏷️ Tags
#segment_tree #queue #array #dynamic_programming #monotonic_queue #heap_priority_queue
🔴1687.delivering-boxes-from-storage-to-ports
🏷️ Tags
#segment_tree #queue #array #dynamic_programming #monotonic_queue #heap_priority_queue
918.maximum-sum-circular-subarray.pdf
77 KB
leetcode.com 2023-01-18
🟡918.maximum-sum-circular-subarray
🏷️ Tags
#array #divide_and_conquer #dynamic_programming #queue #monotonic_queue
🟡918.maximum-sum-circular-subarray
🏷️ Tags
#array #divide_and_conquer #dynamic_programming #queue #monotonic_queue
2444.count-subarrays-with-fixed-bounds.pdf
77.3 KB
leetcode.com 2023-03-04
🔴2444.count-subarrays-with-fixed-bounds
🏷️ Tags
#array #queue #sliding_window #monotonic_queue
🔴2444.count-subarrays-with-fixed-bounds
🏷️ Tags
#array #queue #sliding_window #monotonic_queue
2444.count-subarrays-with-fixed-bounds.pdf
77.3 KB
leetcode.com 2023-03-04
🔴2444.count-subarrays-with-fixed-bounds
🏷️ Tags
#array #queue #sliding_window #monotonic_queue
🔴2444.count-subarrays-with-fixed-bounds
🏷️ Tags
#array #queue #sliding_window #monotonic_queue
leetcode.cn 2023-07-20
🟡918.maximum-sum-circular-subarray
🏷️ Tags
#queue #array #divide_and_conquer #dynamic_programming #monotonic_queue
🟡918.maximum-sum-circular-subarray
🏷️ Tags
#queue #array #divide_and_conquer #dynamic_programming #monotonic_queue
Telegraph
maximum-sum-circular-subarray
给定一个长度为 n 的环形整数数组 nums ,返回 nums 的非空 子数组 的最大可能和 。 环形数组 意味着数组的末端将会与开头相连呈环状。形式上, nums[i] 的下一个元素是 nums[(i + 1) % n] , nums[i] 的前一个元素是 nums[(i - 1 + n) % n] 。 子数组 最多只能包含固定缓冲区 nums 中的每个元素一次。形式上,对于子数组 nums[i], nums[i + 1], ..., nums[j] ,不存在 i <= k1, k2 <= j 其中 k1…