This repo is used for building Data Structures and algorithms from scratch. The repo will follow the structures of the book "Introduction to Algorithms, third edition" by T. Cormen et al.
TBD
Data structures | Access | Search | Insertion | Delete |
---|---|---|---|---|
Array | O(1) | O(n) | O(n) | O(n) |
Stack | O(n) | O(n) | O(1) | O(1) |
Queue | O(n) | O(n) | O(1) | O(1) |
Linked list | O(n) | O(n) | O(1) | O(1) |
HashMap | N/A | O(1) | O(1) | O(1) |