Created
July 18, 2013 08:57
-
-
Save qzchenwl/6027830 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List | |
floors = 0 : 1 : map step [2..] | |
where step h = minimum [ 1 + max (x-1) (floors!!(h-x)) | x <- [1..h-1] ] | |
main = print $ take 200 floors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment