Last Stone Standing

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

  • easy
  • Pro

You have a pile of stones with different weights. Each turn you smash the two heaviest together: if they're equal both are destroyed, otherwise the lighter one is destroyed and the heavier loses that much weight. Return the weight of the last stone, or zero if none are left.

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 →