5
votes
HackerRank, Haskell simple "compression" algorithm
I agree with some of the criticism mentioned in the other review, notably:
You're trying to write a function from String to String, so you should have such a function.
In general, be more eager to ...
3
votes
HackerRank, Haskell simple "compression" algorithm
There are a lot of tools Haskell provides for doing things like this elegantly; I'll try to limit my feedback to boring solutions that will be helpful.
You're trying to write a function from ...
2
votes
HackerRank, Haskell simple "compression" algorithm
The first two sections apply to every problem and every programming language.
Use complementary conditions
I recommend against the > 1 and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
haskell × 1080beginner × 198
programming-challenge × 100
performance × 92
functional-programming × 92
monads × 50
parsing × 48
reinventing-the-wheel × 45
strings × 42
algorithm × 41
recursion × 33
tree × 27
primes × 25
game × 18
parsec × 18
random × 17
mathematics × 17
comparative-review × 16
interpreter × 16
time-limit-exceeded × 15
combinatorics × 15
tic-tac-toe × 14
homework × 14
graph × 13
computational-geometry × 13