Java code compression and decompression of a string
Posted
by
user1822710
on Stack Overflow
See other posts from Stack Overflow
or by user1822710
Published on 2012-11-14T04:56:09Z
Indexed on
2012/11/14
4:59 UTC
Read the original article
Hit count: 148
I am having a problem figuring how to check a string for the same characters in a row then count that same character in a row then printing it out then giving the location of the last occorance of that character count then printing it out then moving to the next character in the string that is different then the previous character and the program is case sensitive.
So the input could be: aaaaAAAbbbddccc
How would I compress this string to: a4A3b3d2c3 ? and then decompress it?
© Stack Overflow or respective owner