Find Subarrays With Equal Sum
Given an integer array nums, determine whether two distinct subarrays of length 2 have the same sum. The subarrays must start at different indices. Return true if such a pair exists, false otherwise.
Given an integer array nums, determine whether two distinct subarrays of length 2 have the same sum. The subarrays must start at different indices. Return true if such a pair exists, false otherwise.