[Haskell-cafe] origin of my fibonacci test

Francesco Ariis fa-ml at ariis.it
Tue May 10 00:08:31 UTC 2016


On Mon, May 09, 2016 at 04:59:40PM -0700, Michael Litchard wrote:
> I have some code that checks to see if a number is a fibonacci number. It's
> not mine, I got it from somewhere and I need to credit it. I am pretty sure
> I got it from Stack Exchange but my search for it went nowhere. If this
> looks familiar to you, or you can tell me better ways to search, please let
> me know.
> 
> [...]

This [1] leads to this [2] (whether it's original or was snatched
from somewhere else, I don't know!)

[1] https://duckduckgo.com/?q=isfib+unfib+fibplus&t=ffnt
[2] https://www.quora.com/What-is-the-most-efficient-algorithm-to-check-if-a-number-is-a-Fibonacci-Number


More information about the Haskell-Cafe mailing list