DSA/algorithms/CPlusPlus
kumarsyadav2 1e53be5fed
chore(CPlusPlus): add palindrome (#483)
Co-authored-by: Rahul Rajeev Pillai <66192267+Ashborn-SM@users.noreply.github.com>
2021-09-28 14:47:29 -04:00
..
Arrays chore(CPlusPlus): added segregation 0 and 1 (#486) 2021-09-27 08:34:15 -04:00
Dynamic-Programming chore(CPlusPlus): Add Edit Distance (#458) 2021-09-13 15:01:10 -04:00
Graphs chore(CPlusPlus): topological sort on graphs (#381) 2021-07-09 09:25:18 -04:00
Linked-Lists chore(CPlusPlus): add linked list implementation (#463) 2021-09-14 09:45:07 -04:00
Maths chore(CPlusPlus): add palindrome (#483) 2021-09-28 14:47:29 -04:00
Multiplication Migrate C++ codes to new directory structure (#226) 2021-04-18 08:05:10 -04:00
Queues Migrate C++ codes to new directory structure (#226) 2021-04-18 08:05:10 -04:00
Recursion chore(CPlusPlus): adding recursion programs (#402) 2021-09-11 11:20:48 -04:00
Searching chore(CPlusPlus): add exponential search (#352) 2021-06-13 12:47:23 -04:00
Sorting chore(CPlusPlus): add cycle-sort (#440) 2021-09-05 15:21:47 -04:00
Stacks enh(CPlusPlus): balanced-parenthesis (#380) 2021-07-09 09:27:24 -04:00
Strings chore(CPlusPlus): delete alternate characters in a string (#480) 2021-09-25 05:10:04 -04:00
Trees chore(CPlusPlus): added Huffman (#468) 2021-09-20 07:45:11 -04:00
README.md chore(CPlusPlus): add palindrome (#483) 2021-09-28 14:47:29 -04:00

README.md

C++

Arrays

  1. Counting Inversions
  2. Dutch Flag Algorithm
  3. Left Rotation
  4. Max Subarray Sum
  5. Shift Negatives
  6. BoyerMoore Voting Algorithm
  7. Reverse Array
  8. Sorted-Rotated Search Array
  9. Fractional Knapsack
  10. Quick Selection
  11. Remove Duplicates
  12. Leaders In The Array
  13. Elements appear thrice In The Array
  14. Maximum Difference
  15. Occurrence of one in sorted array
  16. Segregate 0s and 1s

Dynamic-Programming

  1. Longest Common Subsequence
  2. Longest Common Substring
  3. 0/1-knapsack
  4. Matrix chain Multiplication
  5. Edit Distance

Graphs

  1. Bellman Ford Algorithm
  2. kruskal Algorithm
  3. Breadth First Search
  4. Topological sort

Multiplication

  1. Karatsuba

Linked Lists

  1. All possible insertions
  2. Singly linked lists
  3. doubley linked lists
  4. Circular linked lists
  5. Removing Elements of given value
  6. Reversing a linked lists
  7. Merging two sorted linked lists
  8. Reorder List
  9. Detecting cycle in a singly linked list
  10. Find Merge Point of two singly linked list
  11. Segregate Even Odd Nodes of linked list
  12. Remove Duplicate in Sorted linked list

Searching

  1. Linear Search
  2. Jump Search
  3. Binary Search
  4. Finding squareroot using Binary search
  5. KMP String Searching
  6. Ternary Search
  7. Interpolation Search
  8. Exponential Search

Stacks

  1. Balancing Parenthesis

  2. Reversing Stack

  3. Stack using Array

Sorting

  1. Bubble Sort
  2. Insertion Sort
  3. Quicksort
  4. Selection Sort
  5. 3 way Quick Sort
  6. Bucket Sort
  7. Comb Sort
  8. Counting Sort
  9. heap Sort
  10. Radix Sort
  11. Shell Sort
  12. Binary Insertion Sort
  13. Merge Sort
  14. Wave Sort
  15. Cycle Sort

Strings

  1. Rabin-Karp pattern search algo
  2. All subsequence of a string (Recursion)
  3. String reversal
  4. String tokanisation
  5. Anagram check
  6. Remove occurrences from string
  7. Delete alternate characters in a string
  8. Print first letter of every word

Trees

  1. Creating Binary Tree
  2. Counting and finding sum of all the nodes in BST
  3. Level Order Traversal
  4. Depth first Traversal
  5. Binary Search Tree
  6. In order morris traversal
  7. In order Predecessor and Successor
  8. Avl Tree
  9. Min Heap
  10. Finding the height of a given tree
  11. Finding the elements of a tree visible from top view
  12. Binary Tree Implementation

Maths

  1. Kaprekar Number
  2. Prime Number
  3. Prime Sieve
  4. Fibonacci Series
  5. Armstrong Number
  6. Palindrome
  7. Reverse digit of a number

Recursion

  1. Tower of Hanoi
  2. Factorial
  3. Permutation
  4. GCD/HCF of two numbers
  5. Sum of all elements of an array
  6. Decimal number to Binary conversion
  7. Sum of digits of a decimal integer