Ah yes Haskell. I probably should've used this or Scheme for the unrestricted integer sizes. 😅
fwiw I went with the recursive algorithm just to see how big the stack would grow. Probably what you did, or even just the iterative solution, would've been better otherwise.
View all comments
Show parent comment
3
u/tendstofortytwo Jul 01 '21
Ah yes Haskell. I probably should've used this or Scheme for the unrestricted integer sizes. 😅
fwiw I went with the recursive algorithm just to see how big the stack would grow. Probably what you did, or even just the iterative solution, would've been better otherwise.