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 Hello all, For `sorting/tim_sort.cpp` An exception is thrown: `std::bad_array_new_length`, when you run this piece of code: ```c++ void test(int size) { std::cout
#### Description of Change the int64_t wasn't defined in the directories of bidirectional-dijakstra so i added the call to library thus making it the algo executable #### Checklist - [...
#### Description of Change The original algorithm does not calculate the nth fibonacci number, but rather the next fibonacci number after storing it in a static variable. Thus, I abstracted...
#### Description of Change #### Checklist - [x] I acknowledge that all my contributions will be made under the project's license. Notes: I have fixed the bug #2690.
#### Description of Change #### Checklist - [x] Added description of change - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one,...
#### 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,...
use references is a good idea
#### 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...
#### Description of Change This implementation for maximum clique algorithm is based on the paper "A fast algorithm for the maximum clique" #### Checklist - [x] Added description of change...
#### Description of Change Fix deprecation warning for macOS: ``` [ 48%] Building CXX object sorting/CMakeFiles/bogo_sort.dir/bogo_sort.cpp.o /Users/runner/work/C-Plus-Plus/C-Plus-Plus/sorting/bogo_sort.cpp:54:14: warning: 'random_shuffle' is deprecated [-Wdeprecated-declarations] std::random_shuffle(arr.begin(), arr.end());// Shuffle the array ^ /Users/runner/work/C-Plus-Plus/C-Plus-Plus/sorting/bogo_sort.cpp:86:21: note:...