Run-length encoding: Difference between revisions

Content added Content deleted
((g)awk)
m (added link to look-and-say sequence; indeed, one could implement the encoding just through that!)
Line 9: Line 9:
: Input: <code>WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW</code>
: Input: <code>WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW</code>
: Output: <code>12W1B12W3B24W1B14W</code>
: Output: <code>12W1B12W3B24W1B14W</code>

See also the [[Look-and-say sequence]].


=={{header|AWK}}==
=={{header|AWK}}==