Three Numbers Summing to Zero

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • hard
  • Pro

Given a list of integers, find every distinct group of three numbers that adds up to zero. The same group must not be reported twice, even if the list contains repeated values. Explain your approach, how you avoid duplicates, and its cost.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →