Subarray Sum Equals K — JavaScript medium interview problem
Given an array of integers `nums` and an integer `k`, return the total number of continuous subarrays whose sum equals `k`.
Tags: prefix-sum, hashmap
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.