Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbelltree/odin-recursion
The Odin Project: Recursion
https://github.com/kbelltree/odin-recursion
fibonacci-sequence javascript js merge-sort recursion recursive-functions theodinproject
Last synced: 4 days ago
JSON representation
The Odin Project: Recursion
- Host: GitHub
- URL: https://github.com/kbelltree/odin-recursion
- Owner: kbelltree
- Created: 2024-06-23T21:39:00.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T00:37:11.000Z (8 months ago)
- Last Synced: 2024-06-27T03:46:33.540Z (8 months ago)
- Topics: fibonacci-sequence, javascript, js, merge-sort, recursion, recursive-functions, theodinproject
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# odin-recursion
## The Odin Project: RecursionThis project is focused on creating recursive functions to demonstrate an understanding of recursion. The functions include implementations of the Fibonacci sequence and Merge Sort algorithms.
For more details on this project, please visit [The Odin Project - Project: Recursion](https://www.theodinproject.com/lessons/javascript-recursion).
## Key Project Instructions:
### Fibonacci Sequence
Create two functions that take an integer and return the Fibonacci sequence as an array. The first function, named `fibs`, implements the sequence using a loop. The second function, named `fibsRec`, uses recursion.
**Example:** `fibs(8)` should return `[0, 1, 1, 2, 3, 5, 8, 13]`.
- [Link to my Fibonacci functions](./fibonacci.js)### Merge Sort
Create a recursive function named `mergeSort` that takes an array of numbers and returns a sorted array using the merge sort method.
**Example:** `mergeSort([3, 2, 1, 13, 8, 5, 0, 1])` should return `[0, 1, 1, 2, 3, 5, 8, 13]`.
- [Link to my merge sort function](./mergeSort.js)