Skip to content

Week 1 (Preprocessing Techniques)

Ahmed Elshabasy edited this page Jun 22, 2025 · 8 revisions

Frequency Array, Prefix Sum, and Partial Sum

Welcome to Week 1! πŸŽ‰ In this week, we’ll explore fundamental problem-solving techniques: Frequency Arrays, Prefix Sums, and Partial Sums. These tools are essential for optimizing computations and solving problems efficiently. Mastering them will help you tackle a wide variety of competitive programming challenges. Let’s get started! πŸš€


πŸ“š Resources

πŸ“ Topic Type πŸ”— Link
Frequency Array (Muhammed Afifi) 🎬 Video β–Ά Watch Here
Prefix Sum (Muhammed Afifi) 🎬 Video β–Ά Watch Here
Partial Sum (Muhammed Afifi) 🎬 Video β–Ά Watch Here
Prefix Sum (Mostafa Saad) 🎬 Video β–Ά Watch Here
Frequency Array (Afifi Notes) πŸ“„ Article Read Here
Prefix Sum (Afifi Notes) πŸ“„ Article Read Here
Partial Sum (Afifi Notes) πŸ“„ Article Read Here
Prefix Sum (USACO Guide) πŸ“„ Article Explore Here
Suffix Sum (GeeksforGeeks) πŸ“„ Article Explore Here
Preprocessing Techniques (2024 Session) 🎬 Video β–Ά Watch Here

πŸŽ₯ Lecture Session

πŸ“ Topic πŸ”— Link
🎬 Recording Watch
πŸ“„ Slides View
πŸ” Problems Coming Soon
πŸ’» Codes and Solutions Codes

πŸ“„ Practice Sheet

Problems

πŸ” Problem Name πŸŽ₯ Video Solution πŸ’» Code Solution
A - Books Watch Solution Code
B - Maximum Sum of Products Watch Solution Code
C - AquaMoon and Stolen String Watch Solution Code
D - Social Distance Watch Solution Code
E - Ily and Queries Watch Solution Code
F - Karen and Coffee Watch Solution Code
G - Guess the Permutation Watch Solution Code
H - Kuriyama Mirai's Stones Watch Solution Code
I - Fence Watch Solution Code
J - Greg and Array Watch Solution Code

πŸ† Weekly Contest

πŸ” Problem πŸŽ₯ Video Tutorial πŸ”— Code Solution
A - Contest Problem A Watch Solution Code
B - Contest Problem B Watch Solution Code
C - Contest Problem C Watch Solution Code
D - Contest Problem D Watch Solution Code

πŸ’¬ Community Support

Join the discussion and ask your questions in our Discord’s #community-chat. We're always here to help and guide you! πŸ’¬


✨ Good luck, and enjoy the journey! πŸŽ‰

Clone this wiki locally