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 hints

Topics

Also asked at 45 companies


More Meta Questions

View all Meta questions