An open API service indexing awesome lists of open source software.

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

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")