All Questions
Tagged with compression programming-challenge
6 questions
2
votes
2
answers
3k
views
Run length encoding in C#
This is the original question:
https://www.geeksforgeeks.org/run-length-encoding/
Given an input string, write a function that returns the Run Length
Encoded string for the input string. For ...
1
vote
2
answers
949
views
String Compression
Implement a method to perform basic string compression using the counts
of repeated characters.
For example, the string "aabcccccaaa" would become "a2b1c5a3". If the
"...
2
votes
2
answers
355
views
Naive string compression
Description:
Implement a method to perform basic compression using counts of repeated characters. If the compressed string is not smaller then return the original string.
Code:
...
6
votes
2
answers
7k
views
Perform basic string compression using the counts of repeated characters
I managed to implement this question from Cracking the Coding Interview:
Implement a method to perform basic string compression using the counts
of repeated characters. For example, the string <...
1
vote
1
answer
2k
views
Encoding and decoding in Haskell -- 99 Problems exercise 13, 14
I've been working on these solutions to the Haskell 99 questions, encoding and decoding series for a while now, so I figured I ought to present them to see how I screwed up the implementation.
...
2
votes
1
answer
108
views
Teamwork challenge for Timus Online Judge
Question is here:
Input
The first line contains an integer \$N\$, which is the quantity of numbers written down by Vasya (\$1 \le N \le 1000\$). The second line contains these numbers separated ...