Skip to content

Latest commit

 

History

History
207 lines (180 loc) · 14.2 KB

README.md

File metadata and controls

207 lines (180 loc) · 14.2 KB

Resources for Data Structures and Algorithms, Competitive Programming from Beginner to Advanced

Languages:

Complexities

Big O Notation

Data Structures in Big O Notation

Data Structure Add/Insert Remove/Delete Access/Get Search/Contains Space Complexity
Array O(n) O(n) O(1) O(n) O(n)
Queue O(1) O(1) O(n) O(n) O(n)
Stack O(1) O(1) O(n) O(n) O(n)
HashSet O(1) O(1) - O(1) O(n)
HashMap O(1) O(1) O(1) O(1) O(n)
Singly LinkedList O(1) O(1) O(n) O(n) O(n)
Doubly LinkedList O(1) O(1) O(n) O(n) O(n)
Circular Singly LinkedList O(1) O(1) O(n) O(n) O(n)
Circular Doubly LinkedList O(1) O(1) O(n) O(n) O(n)
Binary Search Tree O(log n) O(log n) O(log n) O(log n) O(n)
Binary Min Heap O(log n) O(log n) O(1) O(n) O(n)
Binary Max Heap O(log n) O(log n) O(1) O(n) O(n)

Sorting Algorithms in Big O Notiation

Sort Algorithm Best Average Worst Space Complexity
Selection Sort O(n^2) O(n^2) O(n^2) O(1)
Insertion Sort O(n) O(n^2) O(n^2) O(1)
Quick Sort O(n log n) O(n log n) O(n^2) O(n)
Merge Sort O(n log n) O(n log n) O(n log n) O(n)

Data Structures

Algorithms

YouTube Resources

SDE Sheets

Websites for practice

Practise Platforms

Github Repositories and Articles

Repositories

Articles

Books

CP Resources

Star🌟 the repo if you like it, share to your friends.