companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Subarray Sum Equals K

47.3% acceptance · asked by 46 companies

Solve on LeetCode
ArrayHash TablePrefix Sum

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Scale AI100Ibm100Accenture100Kpmg100Quora100Ripple88Apple88Walmart Labs88Yandex88Infosys88Meta88Mindtree88Tiktok75Cognizant75Tcs75Amd75Sprinklr75Amazon75Grab75Bitgo75Microsoft75Jpmorgan75Qualcomm75Bloomberg75

Related problems

Two Sum
Easy
Merge Intervals
Medium
Best Time to Buy and Sell Stock
Easy
Group Anagrams
Medium
Number of Islands
Medium