ByteByteGo logo
menuProblems List

K-Sum Subarrays

Medium

Find the number of subarrays in an integer array that sum to k.

Example:

Input: nums = [1, 2, -1, 1, 2], k = 3
Output: 3

You can practice coding exercises online by logging into bytebytego.com on your laptop.