LeetCode 3041. Maximize Consecutive Elements in an Array After Modification February 18, 2024 雙周賽124。根本沒想到又是 dp,想著二分罰坐一小時。
LeetCode 3040. Maximum Number of Operations With the Same Score II February 18, 2024 雙周賽124。久違一個多月的 dp,最近幾乎都是考字串。
LeetCode 3038. Maximum Number of Operations With the Same Score I February 18, 2024 雙周賽124。這題很有良心,範例給的是奇數長度,不然肯定死一片。
LeetCode 3036. Number of Subarrays That Match a Pattern II February 11, 2024 周賽384。最近出題者有點偷懶,不只懶得想題目,還連著幾周都出同樣題型。