An open API service indexing awesome lists of open source software.

https://github.com/ayubamini/compressenterancestring

Challenge Series - A console application that compresses an alphabetical string by collapsing consecutive characters.
https://github.com/ayubamini/compressenterancestring

arrays csharp object-oriented strings

Last synced: 28 days ago
JSON representation

Challenge Series - A console application that compresses an alphabetical string by collapsing consecutive characters.

Awesome Lists containing this project

README

        

# CompressEnteranceString
A console application that compresses an alphabetical string by collapsing consecutive characters. The rules of the compression algorithm are defined by the test cases below.

# Test cases:
1. Input: aaabccccdd
Output : a3bc4d2

2. Input: yyyyyzzzzzzzzzz
Output: y5z10

3. Input: abcd
Output: abcd (note: not a1b1c1d1)