Count and SayMedium

string run-length encoding simulation

Build the nth term by run-length-encoding the previous term — group consecutive equal digits, then emit count + digit. Two approaches, same problem — switch between them and watch each term grow.

n = 4
Press play to watch the algorithm run.
Metrics
Legend
How it works
0 / 0