https://github.com/aldoignatachandra/javascript-linkedlist
Learning data structure (Singly Linked List) using javscript and test using jest
https://github.com/aldoignatachandra/javascript-linkedlist
data-structures javascript jest linked-list
Last synced: about 1 year ago
JSON representation
Learning data structure (Singly Linked List) using javscript and test using jest
- Host: GitHub
- URL: https://github.com/aldoignatachandra/javascript-linkedlist
- Owner: aldoignatachandra
- Created: 2021-02-12T15:21:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T15:22:28.000Z (about 5 years ago)
- Last Synced: 2025-01-11T12:38:47.425Z (about 1 year ago)
- Topics: data-structures, javascript, jest, linked-list
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Linked List Data Structure
( Javascript )
This repo contains my exercise about data structure linked list using javascript and testing using jest. there are three type of linked list data structure (Singly, Doubly and circular) but in this repo iam focus on singly linked list. In this repo i learn how to adding new data in head or spesific index and remove data in head or spesific index.
## Features
Linked List ( app.js )
- Create Initial Data Link List
- Insert New Value Before First Node
- Remove First Node From List
- Insert New Value Before Selected Index
- Remove Value Before Selected Index
Test Linked List Data ( LinkedList.test.js )
- Testing form data function `(insertAtHead)`
- Testing form data function `(getByIndex)`
- Testing form data function `(insertAtIndex)`
- Testing form data function `(removeHead)`
- Testing form data function `(removeAtIndex)`
## How To Install
1. Git clone [Javascript-LinkedList](https://github.com/aldoignatachandra/Javascript-LinkedList) or download zip.
2. Open in your code editor ( vscode, atom or other ).
3. Install the dependencies by running ( `yarn install` )
4. If you want to edit the execute linked list function you can go to ( `./src/LinkedList.js` )
5. If you want to edit the execute testing linked list function you can go to ( `./src/LinkedList.test.js` )
6. If you want try linked list execute using ( `yarn dev` )
7. If you want try linked list test execute using ( `yarn test` )
[ISC](https://en.wikipedia.org/wiki/ISC_license "ISC")