DataStructures-and-Algorithms
DataStructures-and-Algorithms copied to clipboard
Structure the Data in a correct and efficient way :fire:
### Calculates the fast exponentiation, (i.e, a^b) with a **time complexity** of **log(b)**.
An algorithm to calculate the **Factorial** of very **long Integers** in C++.
**Recursive Algorithm** to calculate all **subsets** of a given array.
Fixes #207 Added an **algorithm** to calculate the **Factorial of Big Integers** in C++ in the most efficient way. Time complexity - O(n^2) Space Complexity - O(n)
Fixes #205 Added an **algorithm** to calculate the **exponentiation** in the most efficient approach. Time Complexity - O(log(b)) Space Complexity - O(1)
Fixes #209 Added a **Recursive Algorithm** to calculate all **subsets** of a given array. Time Complexity - O(2^n) Space Complexity - O(2^n) + O(n) Auxiliary Space
There is a commitment — which is a **_compulsary_** requirement — for contributors & maintainers to follow a set of guidelines which is listed [here](https://hacktoberfest.com/participation/). This repository does not fall...
Tower of Hanoi #98 in this approach we use recursion and take the help of the auxilary rod to move all the discs from one rod to another our refrenced...