Prefix Sum Stories
6 stories from the epics
Subarray Sum Equals K
Mahabharata — Yudhishthira's Treasury — Counting the Exact Balance Transfers · Easy
Find Pivot Index
Ramayana — The Fulcrum of Lanka — Finding the Balance Point of Ravana's Island Kingdom · Easy
Subarray Sums Divisible by K
Mahabharata — Yudhishthira's Yagna — Counting Offerings Divisible by the Sacred Number K · Medium
Contiguous Array
Mahabharata — The Balanced Army — Finding the Longest Stretch With Equal Pandavas and Kauravas · Medium
Shortest Subarray With Sum at Least K
Mahabharata — The Deque of Generals — Minimum Regiment That Breaks Karna's Defense · Hard
Count Range Sum
Mahabharata — Vyasa's Merge Count — Counting All Subarrays Within a Sacred Range · Hard