Skip to main content
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 ...
Rainer P.'s user avatar
  • 2,737
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 ...
ShapeOfMatter's user avatar
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 ...
Franky's user avatar
  • 645

Only top scored, non community-wiki answers of a minimum length are eligible