Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 205 Bytes

compress_strings.md

File metadata and controls

8 lines (7 loc) · 205 Bytes

Compress Strings

  1. Write code that compresses a string
  • 'aaaabbccc' -> 'a4b2c3'
  • 'abbbc' -> 'a1b3c1'
  1. Write code that decompresses a string
  • 'a4b2c3' -> 'aaaabbccc'
  • 'a1b3c1' -> 'abbbc'