Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbelltree/odin-linked-lists
The Odin Project: Linked Lists
https://github.com/kbelltree/odin-linked-lists
class javascript js linked-lists singly-linked-list theodinproject
Last synced: about 22 hours ago
JSON representation
The Odin Project: Linked Lists
- Host: GitHub
- URL: https://github.com/kbelltree/odin-linked-lists
- Owner: kbelltree
- Created: 2024-07-02T03:42:42.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T07:15:26.000Z (6 months ago)
- Last Synced: 2024-08-03T08:29:08.124Z (6 months ago)
- Topics: class, javascript, js, linked-lists, singly-linked-list, theodinproject
- Language: JavaScript
- Homepage: https://github.com/kbelltree/odin-linked-lists/blob/main/linkedLists.js
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# odin-linked-lists
## The Odin Project: Linked Lists
This project involves implementing linked lists using class or factory functions to deepen an understanding of data structures in JavaScript. A linked list is a fundamental data structure consisting of a sequence of elements, each contained in a node that links to the next element.
For more details on this project, please visit [The Odin Project - Project: Linked Lists](https://www.theodinproject.com/lessons/javascript-linked-lists).
## Key Project Instructions:
Descriptions and usage details for these components are provided within the code comments in the source file.
### Two Classes or Factory Functions
The project consists of two main components:
- `LinkedList`
- `Node`### List Management Functions
The following functions are to be implemented for managing the list:
- `append(value)`
- `prepend(value)`
- `size`
- `head`
- `tail`
- `at(index)`
- `pop`
- `contains(value)`
- `find(value)`
- `toString`#### Extra Credit
Optionally, you can also implement:
- `insertAt(value, index)`
- `removeAt(index)`
**[Link to my final solution](./linkedLists.js)**
## Built With
- JavaScript
- ESLint
- Prettier---