C-Plus-Plus icon indicating copy to clipboard operation
C-Plus-Plus copied to clipboard

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

Results 378 C-Plus-Plus issues
Sort by recently updated
recently updated
newest added

Updated the odd even sort code with comments and simplified it to its most basic form. #### Description of Change #### Checklist - [x] Added description of change - [x]...

requested changes

This pull request change Floyd.cpp to floyd-warshall algorithm in the graph module. The floyd-warshall algorithm is used to find the shortest paths between all pairs of vertices in a weighted...

duplicate
awaiting modification
requested changes
Proper Documentation Required

### Description A buffer overflow occurs in the `build` function of `prefix_sum_array.cpp` when accessing elements of `original_array`. The error message indicates accessing index between 1 and 11 of an array...

bug
stale

#### Description of Change Added a program to **swap two numbers** using reference variables in C++. The program includes: - A function `swap_two_numbers(int &a, int &b)` to swap two integers....

stale

#### Description of Change This PR resolved the `-Wreorder` warning emitted by the compiler. #### 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)...

#### Description of Change This PR sorts the added subdirectories. #### 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...

### Description A buffer overflow vulnerability exists in median_search.cpp when handling empty or invalid input arrays. The error occurs at: median_search.cpp:79:11: error: buffer overflow, pointer '&m' accesses 0 bytes at...

bug

#### Description of Change This PR removes the unused parameters of the `main` functions. Resolves some of the `-Wunused-parameter` warnings. #### Checklist - [x] Added description of change - [x]...

#### Description of Change This PR removes some unused includes of the `array` header. Similar to #2945. #### Checklist - [x] Added description of change - [x] PR title follows...

#### 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...