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

https://github.com/serhatci/js-algorithm-and-data-structures

My own studies of JavaScript algorithm and data structures from Udemy masterclass
https://github.com/serhatci/js-algorithm-and-data-structures

Last synced: 10 months ago
JSON representation

My own studies of JavaScript algorithm and data structures from Udemy masterclass

Awesome Lists containing this project

README

          

# js-algorithm-and-data-structures

My own studies of JavaScript algorithm and data structures from Udemy masterclass

Big O of Singly Linked List:

- Insertion : O(1)
- Removal: unshift O(1) -- pop O(N)
- Search: O(N)
- Access: O(N)

Big O of Doubly Linked List:

- Insertion : O(1)
- Removal: O(1)
- Search: O(N) (technically O(N/2))
- Access: O(N)

Big O of Stacks & Queues:
(Can be also implemented with JS arrays but I used linked list)

- Insertion : O(1)
- Removal: O(1)
- Search: O(N)
- Access: O(N)

Big O of Binary Search Tree:

- Insertion : O(1)
- Search: O(log n)