Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 761 Bytes

File metadata and controls

41 lines (27 loc) · 761 Bytes

2395. Question 2395

All prompts are owned by LeetCode. To view the prompt, click the title link above.

Back to top


First completed : May 31, 2024

Last updated : July 01, 2024


Related Topics : N/A

Acceptance Rate : Unknown


Solutions

Python

class Solution:
    def findSubarrays(self, nums: List[int]) -> bool:
        sumsSet = set()

        for i in range(0, len(nums) - 1) :
            sum = nums[i] + nums[i + 1]
            
            if (sum in sumsSet) :
                return True
            
            sumsSet.add(sum)
        
        return False