Run-length encodingMedium
Count and Say
The first term is "1". Each next term reads the one before aloud, run by run, as the run's length and then its digit, so "1" gives "11" and "11" gives "21". Return the nth term.
Appearance
Palette
Start each problem at
Write shows nothing of the solution until you ask. Kept on this device, not in your account.
Voice
When it starts
Speed
Pause between steps
Read aloud
Natural voices run on your device, and what is read never leaves it. How natural a device’s own voice sounds depends on the device: on a Mac, Premium and Enhanced voices (System Settings, Accessibility, Spoken Content) sound best. Kept on this device, not in your account.
Run-length encodingMedium
The first term is "1". Each next term reads the one before aloud, run by run, as the run's length and then its digit, so "1" gives "11" and "11" gives "21". Return the nth term.
Aim for O(n · L) time, where L is the length of the longest termInspired by a classic interview problem ↗
If you accept, Google Analytics counts which pages are visited and sets cookies to tell visits apart. Nothing is loaded if you decline, and nothing about your code is ever sent. See what is kept; you can change your mind from Analytics settings in the footer.