LESSON 08 / 22

Prefix Totals

Store every running total in a list (a prefix-sum list) and you can answer “what’s the sum from item i to item j?” instantly, without adding again.

🎓Hardlevel
⏱️14 minto finish
✏️2activities

📂 Algorithmic Thinking🏷️ Algorithms

🔒

You’ve finished your free lessons! 🎉

Create a free account to unlock every lesson, save your progress, keep your streak and get personal review suggestions. It takes 20 seconds.