Compilation

g++ fileName.cpp -o exeName

Execution

./exeName

Algorithms

Searching

  1. binary search(loop method)
  2. binary search(recursion method)

Sorting

  1. insertion sort
  2. Heap Sort
  3. Merge Sort
  4. Quick Sort

Linked list

  1. Linked list creation
  2. Reverse a linked list
  3. Floyd's cycle detection algorithm
  4. Algorithm to find the merge node of two linked list

Trees

  1. height of BT
  2. binary search tree
  3. Level order Traversal
  4. Check if BT is BST
  5. AVL tree
  6. Heap sort
  7. Huffman encoding decoding
  8. Swaping Kth level
  9. Trie
  10. Segment tree

Others

  1. Next largest permutation
  2. Next smallest permutation
  3. Knapsack's Problem using greedy method
  4. Job sequencing with deadline by greedy method
  5. Fibonacci series with dynamic programming method
  6. Count subsets whose sum is equal to a given number using dynamic programming
  7. Balanced Brackets
  8. Queue using stack