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!
Nice problem! Unfold the paper folding unfolded points xD xD
`unfold ls p = length $ filter inside $ foldr ((=
“folding unfolded points” — indeed. =D Hmm, looks like your code got cut off?
It’s only a joke :)
Nice one! Good to see 100% Haskell solutions :D.
Interesting problem. The ideas to solve it can be easily applied to writing a pixel shader for origami. https://www.shadertoy.com/view/ssXGDH
Cool!
I love it!
Pingback: Competitive programming in Haskell: folding folds | blog :: Brent -> [String]