Subarray Sum Equals K
CodingPhone, OnsiteSoftware Engineer, Machine Learning EngineerReported Aug, 2026Medium Frequency
Company question banks are included with the Insider plan.
Given an integer array nums and an integer k, return the total number of contiguous subarrays whose sum equals k.
A subarray is a contiguous non-empty sequence of elements within the array....