Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 313 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 313 Bytes

239.Subarray Sum Equals K

Description

Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.

Example

Input: (nums = [1, 1, 1]), (k = 2)
Output: 2

From

LeetCode