Given an integer array nums and an integer k, return the maximum length of a contiguous subarray in nums whose elements sum to exactly k. If no such subarray exists, return
Note: A subarray is a contiguous sequence of elements within
nums.
Constraints:
nums.length
nums[i]
k
Given an integer array nums and an integer k, return the maximum length of a contiguous subarray in nums whose elements sum to exactly k. If no such subarray exists, return
Note: A subarray is a contiguous sequence of elements within
nums.
Constraints:
nums.length
nums[i]
k