Brainlag
  1. Library
  2. Challenges
  3. C

Compress a level row

Squash a row of a tile map like "####....##" into "4#4.2#" with run-length encoding, writing into a buffer the caller gives you.

CStretch30 minPremium

Premium

Inside: 2 checks, no scaffolding.

See Premium£7.99 a month. Already Premium? Sign in

Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.