C-Plus-Plus
C-Plus-Plus copied to clipboard
Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
#### Description of Change #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [x] Added tests and example, test must pass...
also added tests for the implementation. See the file for more details #### Description of Change #### Checklist - [x] Added description of change - [x] Added file name matches...
Complexity - Optimized TC -> O(N) SC-> O(1)
Whole code for algorithm. #### Description of Change #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [x] Added tests and...
### Detailed description Warshall's algorithm is used to determine the transitive closure of a directed graph or all paths in a directed graph by using the adjacency matrix. For this,...
This PR is in reference to #2068.
Priority Queue is a very important data structure with its use cases in many fields. It is a must addition to the data-structures. #### Description of Change #### Checklist -...
#### Description of Change I have added a new file/code on checking if a number is perfect or not #### Checklist - [x] Added description of change - [x] Added...
This pull request is made in reference to the **issue #2054.**
### Detailed description Given a boolean 2D matrix grid of size n * m. You have to find the number of distinct islands where a group of connected 1s (horizontally...