Kimi LeetCode 3480. 删除一个冲突对后最大子数组数目 Python3实现
LeetCode 3480. 删除一个冲突对后最大子数组数目 — Python3 实现python
from typing import Listclass Solution:def maxSubarrays(self, n: int, conflictingPairs: List[List[int]]) -> int:# groups[a] 存储所有以 a 为左端点(a < b)的冲突对的…
2026/7/6 13:51:04