clojure-hackos.string-compression

Solves the String Compression problem. See: https://www.hackerrank.com/challenges/string-compression

compress-str

(compress-str s)

Reduces the given string by replacing every sub-string of repeated letters with that letter followed by the number of duplicates.