2021-04-18 12:05:10 +00:00
|
|
|
|
# C++
|
|
|
|
|
|
|
|
|
|
## Arrays
|
2021-04-18 14:34:27 +00:00
|
|
|
|
1. [Counting Inversions](Arrays/counting-inversions.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
2. [Dutch Flag Algorithm](Arrays/dutch-flag-algo.cpp)
|
|
|
|
|
3. [Left Rotation](Arrays/left-rotation.cpp)
|
|
|
|
|
4. [Max Subarray Sum](Arrays/max-subarray-sum.cpp)
|
|
|
|
|
5. [Shift Negatives](Arrays/shift-negatives.cpp)
|
2021-04-27 17:00:10 +00:00
|
|
|
|
6. [Boyer–Moore Voting Algorithm](Arrays/boyer_more.cpp)
|
2021-05-13 17:05:57 +00:00
|
|
|
|
7. [Reverse Array](Arrays/reverse-array.cpp)
|
2021-05-19 12:41:30 +00:00
|
|
|
|
8. [Sorted-Rotated Search Array](Arrays/search-sorted-rotated.cpp)
|
2021-06-08 18:17:43 +00:00
|
|
|
|
9. [Fractional Knapsack](Arrays/fractional-knapsack.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
|
|
|
|
|
## Graphs
|
|
|
|
|
1. [Bellman Ford Algorithm](Graphs/bellmam-ford.cpp)
|
|
|
|
|
2. [kruskal Algorithm](Graphs/kruskal-algorithm.cpp)
|
|
|
|
|
|
|
|
|
|
## Multiplication
|
|
|
|
|
1. [Karatsuba](Multiplication/karatsuba.cpp)
|
2021-06-12 20:12:58 +00:00
|
|
|
|
|
2021-04-18 12:05:10 +00:00
|
|
|
|
## Linked Lists
|
2021-05-03 10:26:11 +00:00
|
|
|
|
1. [All possible insertions](Linked-Lists/all-possible-insertion.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
2. [Singly linked lists](Linked-Lists/singly.cpp)
|
|
|
|
|
3. [doubley linked lists](Linked-Lists/doubly.cpp)
|
|
|
|
|
4. [Circular linked lists](Linked-Lists/circular.cpp)
|
|
|
|
|
5. [Reversing a linked lists](Linked-Lists/reverse.cpp)
|
2021-05-03 10:26:11 +00:00
|
|
|
|
5. [Merging two sorted linked lists](Linked-Lists/merge.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
|
|
|
|
|
## Searching
|
|
|
|
|
1. [Linear Search](Searching/linear-search.cpp)
|
|
|
|
|
2. [Jump Search](Searching/jump-search.cpp)
|
|
|
|
|
3. [Binary Search](Searching/binary-search.cpp)
|
|
|
|
|
4. [Finding squareroot using Binary search](Searching/sqrt-monotonic-binary-search.cpp)
|
2021-05-04 10:28:56 +00:00
|
|
|
|
5. [KMP String Searching](Searching/kmp.cpp)
|
|
|
|
|
6. [Ternary Search](Searching/Ternary-search.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
|
|
|
|
|
## Stacks
|
|
|
|
|
1. [Balancing Parenthesis](Stacks/balanced-parenthesis.cpp)
|
2021-06-12 20:12:58 +00:00
|
|
|
|
2. [Stack using Array](Stacks/stack-using-array.cpp)
|
|
|
|
|
|
2021-04-18 12:05:10 +00:00
|
|
|
|
## Sorting
|
|
|
|
|
1. [Bubble Sort](Sorting/bubble-sort.cpp)
|
|
|
|
|
2. [Insertion Sort](Sorting/insertion-sort.cpp)
|
|
|
|
|
3. [Quicksort](Sorting/quick-sort.cpp)
|
|
|
|
|
4. [Selection Sort](Sorting/selection-sort.cpp)
|
2021-04-18 14:34:27 +00:00
|
|
|
|
5. [3 way Quick Sort](Sorting/3way-quick-sort.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
6. [Bucket Sort](Sorting/bucket-sort.cpp)
|
|
|
|
|
7. [Comb Sort](Sorting/comb-sort.cpp)
|
|
|
|
|
8. [Counting Sort](Sorting/counting-sort.cpp)
|
|
|
|
|
9. [heap Sort](Sorting/heap-sort.cpp)
|
|
|
|
|
10. [Radix Sort](Sorting/radix-sort.cpp)
|
|
|
|
|
11. [Shell Sort](Sorting/shell-sort.cpp)
|
2021-05-17 10:40:03 +00:00
|
|
|
|
12. [Binary Insertion Sort](Sorting/binary-insertion-sort.cpp)
|
2021-05-26 11:12:24 +00:00
|
|
|
|
13. [Merge Sort](Sorting/merge-sort.cpp)
|
2021-06-12 20:12:58 +00:00
|
|
|
|
|
2021-04-18 12:05:10 +00:00
|
|
|
|
## Strings
|
|
|
|
|
1. [Rabin-Karp pattern search algo](Strings/rabin-karp.cpp)
|
|
|
|
|
2. [All subsequence of a string (Recursion) ](Strings/sequence.cpp)
|
|
|
|
|
3. [String reversal](Strings/string-reverse.cpp)
|
|
|
|
|
4. [String tokanisation](Strings/string-tokeniser.cpp)
|
2021-06-08 10:39:49 +00:00
|
|
|
|
5. [Anagram check](Strings/anagram.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
|
|
|
|
|
## Trees
|
|
|
|
|
1. [Creating Binary Tree](Trees/build-binary-tree.cpp)
|
|
|
|
|
2. [Counting and finding sum of all the nodes in BST](Trees/count-and-sum-of-nodes-in-binary-tree.cpp)
|
|
|
|
|
3. [Level Order Traversal](Trees/level-order-traversal.cpp)
|
|
|
|
|
4. [Depth first Traversal](Trees/pre-in-post-traversal.cpp)
|
2021-05-14 12:43:12 +00:00
|
|
|
|
5. [Binary Search Tree](Trees/binary-search-tree.cpp)
|
2021-05-21 12:15:21 +00:00
|
|
|
|
6. [In order morris traversal](Trees/in-order-morris-traversal.cpp)
|
2021-05-23 16:47:25 +00:00
|
|
|
|
7. [In order Predecessor and Successor](Trees/in-order-predecessor-and-successor.cpp)
|
2021-05-26 11:12:50 +00:00
|
|
|
|
8. [Avl Tree](Trees/avl.cpp)
|
2021-06-10 14:16:46 +00:00
|
|
|
|
9. [Min Heap](Trees/min-heap.cpp)
|
2021-04-18 12:05:10 +00:00
|
|
|
|
|
2021-04-23 04:40:07 +00:00
|
|
|
|
# Maths
|
|
|
|
|
1. [Kaprekar Number](Maths/Kaprekar-number.cpp)
|
2021-05-15 11:17:05 +00:00
|
|
|
|
2. [Prime Number](Maths/prime-check.cpp)
|
2021-05-18 15:07:23 +00:00
|
|
|
|
3. [Prime Sieve](Maths/prime-sieve.cpp)
|