Skip to content

jinambo/structster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Structster.js

Structster - simple data structures javascript library

The library is under development and more data structures will be added over time.

Stack

Stack initialization
let stack = new Stack('<value of the first element>')
Push to the stack
stack.nodePush('<value>')
Pop from the stack
stack.nodePop()

Queue

Queue initialization
let queue = new Queue('<value of the first element>')
Add to the queue
stack.nodeEnqueue('<value>')
Remove from the queue
stack.nodeDequeue()

Singly Linked List

Singly Linked List initialization
let list = new LinkedList()
Create new node and insert it at the beginning
list.insertFirst('<value>')
Set active node
list.setActive('<value>')
Create new node and insert it behind the active node
list.postInsert('<value>')
Delete the first node
list.deleteFirst()
Delete the node after the active one
list.postDelete()

About

Structster - simple data structures javascript library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published