HouseCanary processes ordered property-market measurements, such as daily valuation adjustments. Given an integer array nums and a target integer, determine whether any contiguous subarray of exactly three elements has a sum equal to the target.
The subarray must contain consecutive elements, and elements cannot be reordered or skipped. Return True as soon as a matching window is found; otherwise return False.
Implement has_three_sum(nums, target).
nums, a list of integers, and target, an integer.True if there exists an index i such that nums[i] + nums[i + 1] + nums[i + 2] == target; otherwise return False.nums.def has_three_sum(nums, target):