Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 234 Bytes

compress_string.md

File metadata and controls

8 lines (7 loc) · 234 Bytes

Compress String

  1. Write a function that gets a string and compresses it
  • 'aaaabbccc' -> 'a4b2c3'
  • 'abbbc' -> 'a1b3c1'
  1. Write a function that decompresses a given string
  • 'a4b2c3' -> 'aaaabbccc'
  • 'a1b3c1' -> 'abbbc'