The O(1) Fibonacci implementation

38 points · 5 comments · view on lemmy.world

5 Comments

MontyVirus@sh.itjust.works · 8 pts · 3y

This has no business looking this satisfying

cloudy1999@sh.itjust.works · 4 pts · 3y (1 reply)

Goofy but aesthetically pleasing impl

nychtelios@rlyeh.icu · 1 pts · 3y

This isn't goofy, this is an extremely diffused "pattern" when you need to use non dynamic number sequences.

exapsy@sh.itjust.works · 3 pts · 3y

Dynamic programming /s