Run-Length Encoding

Compress strings by replacing sequences of identical characters with that character followed by a count.

Easy5/15/2024

Problem statement

Run-length encoding (RLE) compresses strings by replacing sequences of identical characters with that character prefixed by a count. For instance, aaaabcccaa should be compressed to 4a1b3c2a.

Problem leaderboard

#
Size
%
Users
#1
42 c.
Top 63%
alexisab
maximec-indy
Shanethegamer
voytxt
Thomasdcrt
#2
46 c.
Top 75%
ComputerKWasTaken
#3
50 c.
Top 88%
emma
#4
54 c.
Top 100%
Seboran