Skip to content

Instantly share code, notes, and snippets.

@OfTheDelmer
Created July 30, 2014 16:17
Show Gist options
  • Save OfTheDelmer/ee93fb11c4d8f0cfb2fd to your computer and use it in GitHub Desktop.
Save OfTheDelmer/ee93fb11c4d8f0cfb2fd to your computer and use it in GitHub Desktop.

Warm Up

Compression

After working with random strings of text all day in your office you start to wonder if there is an easier way to store the text. What you end up with is an idea for compression that you want to implement. You decided to replace repeated characters with their count followed by the character, i.e. AAAABBBCD becomes 4A3BCD.

@andersonmat
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment