๐ WAYPOINT LESSON
Simulation II โ The Vanishing Sums
โญโญโญ advancedโณ 25 min read๐ Lesson 249 of 281
Hidden-topic problem: count zero-sum subarrays. The small value range is a deliberate gift โ read the constraint table as a hint machine.
Simulation II. No topic announced. The value bound (โ5..5) is the invitation: some counting structure over the reachable prefix sums beats any pairwise scan. The all-zeros test pins the empty/degenerate boundary.