Posts by João Victor • 1 point
1 post
-
0
votes1
answer306
viewsQ: String Encoding - Haskell
The following code encodes a sequence of equal characters, replacing the sequence with ! na, where n is the number of times the character a is repeated. Note that it only compresses sequences…