This repository is a single destination of all the common algorithms which are taught in Data Structures and Algorithms courses. These implementations are for learning purposes and may not be the most efficient way for solving problems.
If you find any issues with the currently present implementations, feel to to correct them or create an issue mentioning those.
Read the Contribution Guidlines before you contribute.
You can also create an issue or contact us if you have any doubts.
- Dynamic Programming
- Graph Algorithms
- Math
- Searching
- Sorting
- String
- Tree Algorithms
- Miscellaneous
- Unit Tests
- 0-1 Knapsack
- Activity Selection Problem
- Coin change
- Fibonacci DP
- Fractional Knapsack Problem
- Longest Common Subsequence
- Matrix Chain Multiplication
- Cycle in Directed Graph
- Cycle in Undirected Graph
- Dijktras
- Flood Fill Algorithm
- Floyd Warshall
- Hamiltonian Path Cycle
- Kosaraju Algorithm
- Kruskal's Algorithm
- Minimum Cost Path Algorithm
- Prim's Algorithm
- Binary Exponentiation
- Binary GCD
- Factorial upto 20
- Fibonacci
- Josephus problem
- Matrix exponentiation
- nCr_mod_prime
- Pascal triangle
- Sieve of eratosthenes
- Binary Search
- Breadth First Search
- Depth First Search
- Exponential Search
- Fibonacci Search
- Interpolation Search
- Linear Search
- Quick Select
- Recursive Linear Search
- Stair Case Search
- Jump Search
- Bubble Sort
- Bucket Sort
- Cocktail Sort
- Counting Sort
- Cycle Sort
- Heap Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Radix Sort
- Selection Sort
- Shell Sort
- Check is balanced
- Construct Binary Tree from Inorder Preorder array
- Binary Tree to Doubly LinkedList
- Inorder Traversal
- Invert Binary Tree
- Level Order Traversal
- Postorder Traversal
- Preorder Traversal
- Greedy Money Change Recursive
- Huffman Encoding
- Kadanes Algo
- Leaders in an array
- Majority Element
- Range sum using segment tree
- Round Robin
- Shortest Job First
- Stock buy and sell problem
- Tower of Hanoi
- Trapping Rain Water
--
--
--
- Array Sum
- checkIfArrayIsSorted
- deleteElement
- FibonacciSeries
- getLargestElementIndex
- insertion
- leftRotateByOne
- moveZerosToEnd
- removeDuplicatesFromSortedArray
- rotateArrayDTimes
- Two Pointer Algorithm
- binaryExponentiation
- checkPalindromeNumber
- countDigitsInANumber
- euclidGCD
- factorialUsingRecursion
- nCr
- nthFibonacci
- printArrayRecursive
- printOneToN
- sumOfDigits
- sumOfNNumbers
- towerOfHanoiMoveCount
--
- Graph Algorithms
- Searching
- Sorting
- Tree Algorithms
- Miscellaneous
- Unit Tests
- Machine Learning Algorithms
- Duplicate Zeros
- Fibonacci Recursive
- Greatest Common Divisor
- Hangman Game
- Is Anagram?
- Kadane Algorithm
- Majority Element
- Next President
- Prime upto N
- Queue
- Rotation
- Single Linked List
- Stack
- [Decision_tree_algorithm] (https://github.com/aniketsharma00411/algorithmsUse/blob/master/Python/Machine%20Learning%20Algorithms/Decision_Tree_Algorithm/Decision_tree_algorithm.ipynb)
--
--