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...
Given text string with length n and a pattern with length m, the task is to prints all occurrences of pattern in text. #### Description of Change #### Checklist -...
Adding doc comments for binary search tree traversal functions
### Detailed description Detailed description: Problem Statement: The Moore Voting Algorithm is an efficient way to find the majority element in an array. A majority element is defined as an...
#### 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...
I removed using namespace std and added std:: to the cin and cout so that the array implementation named "queue" will not conflict with std::queue. Fixes #2690
#### Description of Change Reformat math/modular_inverse_fermat_little_theorem.cpp by adding namespaces, documentations, tests. #### Checklist - [x] Added description of change - [x] Added tests and example, test must pass - [x]...
#### Description of Change #### Checklist - [ ] Added description of change - [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [ ] Added tests and example,...
#### Description of Change - Added a new function to count the number of paths in a graph. - Implemented a test case to validate the functionality of the new...
#### Description of Change - Description Of change: proposing for adding a string interview quetions and a readme file listing a documentation of strings and a associated stl. - File...