Largest Sum of a Run

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

  • medium
  • Pro

Given a list of integers, some negative, find the largest sum of any run of consecutive numbers. The run must contain at least one number. Explain an approach faster than checking every run.

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 →