solulubeta
Sign in
Story Problems / Arrays, windows & two pointers
01.13 · Problem

Zero-Sum Teams of Three

Medium Sort + two pointers (3Sum, counting) Pro

This problem is part of solulu Pro

A coach has players with performance scores (positive or negative relative to the team average). A team of three is *balanced* if its scores add up to exactly 0. Count the balanced teams, where two teams are the same if…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 13 of 94 · updated 2026-10-12