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 hintsTopics
Also asked at 45 companies
More Sprinklr Questions
Create Components With Same ValueHardMinimum Edge Weight Equilibrium Queries in a TreeHardNumber of Great PartitionsHardApply Operations on Array to Maximize Sum of SquaresHardNext Greater Numerically Balanced NumberMedium
View all Sprinklr questions