Skip to content
Algo
Viz
Home
/
Prefix Sum
Prefix Sum
Precompute running totals — range queries in O(1).
Share
0
/ 3 understood · 0%
Walkthroughs
3
Problems
3
Start here
All
Not yet done
Understood
Animated
3 shown
Overview
Precompute running totals · range sum in O(1)
animated
Easy
Count Vowels in Substrings
Prefix-sum a 0/1 indicator
animated
Medium
Subarray Sum Equals K
Running prefix + a count hashmap
animated
Medium