Longest Subarray With Target Sum
Asked at Amazon · Coding Questions · Difficulty: Medium
Given an integer array `nums` and a `target`, return the length of the longest contiguous subarray whose sum equals `target`, or `0` if none exists.
Loading the problem…