← Questions

Character at an index of a run-length encoded string

0
WaymoCodingLast asked Sep 2026

A coding interview question asked in Waymo's coding round, last asked Sep 2026. It tests strings, binary-search and prefix sums.

A string of uppercase letters is stored run-length encoded: each maximal run is the letter followed by its length, so B A A E E E C is stored as "B1A2E3C1". Return the letter at a given position of the decoded string without decoding it.

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 Sep 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

strings · binary-search · prefix sums

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