【Leetcode】713. Subarray Product Less Than K 乘積小於K的子數組

解法 呃……居然忘記了尺取法……python class Solution: def numSubarrayProductLessThanK(self, nums: List[int], k: int) -> int: if k<=1: return 0 n = len(nums) l = 0 prod
相關文章
相關標籤/搜索