Skip to content

dWanderingSoul/Lazy-Fibonnaci-Sequence-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Lazy-Fibonnaci-Sequence-Generator

Lazy Fibonacci Sequence Generator with Caching and User-Defined Range (Node.js) This project provides a JavaScript generator function for calculating the Fibonacci sequence on demand, utilizing caching and allowing for user-defined ranges.

Features Lazy Calculation: The generator yields Fibonacci numbers one by one, avoiding upfront calculation of the entire sequence and improving memory efficiency. Caching Mechanism: A closure stores previously calculated Fibonacci numbers, enhancing performance for repeated requests. User-Defined Range: The generator accepts a starting and ending index as arguments, enabling retrieval of a specific portion of the sequence.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published