← Questions

Average of a list, or zero when it is empty

0
WaymoCodingLast asked Jul 2026

A coding interview question asked in Waymo's coding round, last asked Jul 2026. It tests arrays and math.

A warm-up: given a list of numbers, return their arithmetic mean, the sum divided by the count. If the list is empty, return 0.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Waymo · Coding · Last asked Jul 202645 min · Usually two rounds; some give you the interviewer's buggy code to find and fix, some are read aloud with no skeleton

What it tests

arrays · math

Your code and the AI tutor open when you unlock this question.