Coding tools
Learn & compete
Community
Practice
Prefix sum with hash map.
Constraints
Example
>>> subarray_sum([1,1,1], 2) 2
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints