Maintained by Soumojit Shome
Create a Directory :
mkdir directory_name
Create File :
pluma fileName
Change Directory :
cd /path/to/directory
Compile C++ :
g++ fileName.cpp
Run :
./a.out
or
./a.exe
- Array Input Output
- Max Min
- Insert New Element in an Array
- Linear Search Without Function
- Linear Search With Function
- Binary Search
Search Name |
Best Time Complexity |
Average Time Complexity |
Worst Time Complexity |
Worst Space Complexity |
---|---|---|---|---|
Linear | O(1) | O(n) | O(n) | O(1) |
Binary | O(1) | O(log n) | O(log n) | O(1) |
- Stack | Push, Pop, Display
- Stack | Class | Push, Pop, Display
- Stack Copy Program | Copying Elements Between Stacks
- Queue Without Class
- Queue With Class
- Decimal to Binary Converter
- Circular Queue Without Class
- Circular Queue Using Class
- Creating Your Own Header File
- Sparse Matrix
- File Read Write
- Infix to Postfix
- Infix to Prefix
- Postfix to Infix
- Prefix to Infix
- Postfix Evaluation
- Singly Linked List
- Singly Linked List
- Circular Singly Linked List
- Bubble Sort
- Insertion Sort
- Selection Sort
- Quick Sort
- Merge Sort
- Heap Sort
Sort Name |
Best Time Complexity |
Average Time Complexity |
Worst Time Complexity |
Worst Space Complexity |
Stable | Adaptive |
---|---|---|---|---|---|---|
Bubble | O(n) | O(n^2) | O(n^2) | O(1) | Yes | Yes |
Insertion | O(n) | O(n^2) | O(n^2) | O(1) | Yes | Yes |
Selection | O(n^2) | O(n^2) | O(n^2) | O(1) | ||
Quick | O(nlogn) | O(nlogn) | O(n^2) | O(logn) | Yes | |
Merge | O(nlogn) | O(nlogn) | O(nlogn) | O(n) | Yes | |
Heap | O(nlogn) | O(nlogn) | O(nlogn) | O(n) |
- Implement a stack using singly linked list
- Implement a Stack and Queue using singly linked list and Using Class
- Doubly Linked List
- Linked Representation
- PreOrder Traversal
- PostOrder Traversal
- InOrder Traversal
- Binary Tree Input Element
- BFS Breadth First Search
- DFS Depth First Search
- Binary search
- Linear search
- Matrix addition
- Matrix multiplication
- Stack using array
- Stack using linked list
- Infix to prefix
- Infix to postfix
- Postfix evaluation
- Queue using array
- Circular queue using array
- Circular queue using linked list
- Queue using linked list
- Single linked list
- Circular linked list
- Double linked list
- Polynomial addition
- Sparse matrix addition
- Sparse matrix subtraction
- Bubble sort
- Insertion sort
- Selection sort
- Quick sort
- Merge sort
- Heap sort
- Tower Of Hanoi
- BST formation
- Tree traversal
- Find the common elements between two matrices