Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/memoization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ console.log(fibonacci(10)) // returns 55

## Notes

- The function uses memoization to store previously computed Fibonacci numbers, which significantly improves performance for large values of `n`.

## License

This project is licensed under the MIT License.
- The function uses memoization to store previously computed Fibonacci numbers, which significantly improves performance for large values of `n`. Retrieving a value in the nth position for the first time is `O(2^n)` (expensive), whereas after the initial compute it is memoized and becomes a simple array access for `O(1)` (fast).