Subarray Sum Equals K at Meta
Medium46.8% acceptance
This problem has 87.5% frequency at Meta.
Problem Description
Given an array of integers `nums` and an integer `k`, return _the total number of subarrays whose sum equals to_ `k`. A subarray is a contiguous **non-empty** sequence of elements within an array.
Read full problem and hintsTopics
Also asked at 45 companies
More Meta Questions
Kth Largest Element in an ArrayMediumTwo SumEasyMerge IntervalsMediumMerge Sorted ArrayEasyFind Peak ElementMedium
View all Meta questions