Subarray Sum Equals K at Sprinklr

Medium46.8% acceptance

This problem has 62.5% frequency at Sprinklr.

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 Sprinklr Questions

View all Sprinklr questions