Skip to content

MasterMorsy/data-structure-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

this repo for important data structure implementation in javascript👌

Data structure type implemented:

  • Stack

    • Push() add new item to storage.
    • pop() delete last item.
    • length() return size of storage.
    • peak() return first item.
    • swap() swap first two items.
    • print() return items.
    • search() return index of target item.
    • isEmpty() return Boolean to check if stack empty or not.
  • Queue

    • enqueue() add new item to storage.
    • dequeue() delete last item.
    • length() return size of storage.
    • first() return first item.
    • last() return last item.
    • print() return items.
    • search() return index of target item.
    • isEmpty() return Boolean to check if queue empty or not.

About

Implement important data structure in javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published