« Competitive programming in Haskell: cycle decomposition with mutable arrays » Average and median via optimization

Competitive programming in Haskell: folding challenge

Posted on February 23, 2021
Tagged , , ,

As of this writing, I am the only person who has solved Origami on Open Kattis (see the problem statistics here). This is a shame since it is a very nice problem! Of course, I solved it in Haskell.

I challenge you to solve it—bonus points for using a fold in your solution!