Created
July 9, 2020 16:38
-
-
Save kana-sama/8d9f5673cbdb640ce6843613845972af to your computer and use it in GitHub Desktop.
This file contains 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 (findIndex) | |
import Data.Maybe (fromJust) | |
fibs = 1 : 1 : zipWith (+) fibs (tail fibs) | |
solution = fromJust $ findIndex (\x -> length (show x) == 50) fibs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment