mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 22:15:57 +08:00
28e4842319daeb300c571a867ed4d29244987f4d
Multiple changes: Time complexity updated. Fixed Indentation issues. Global array primes[ ] was misleading because primes[x] = 0 means x is prime. Updated the array name to isprime[ ] and now isprime[x] = 1 means x is prime. Updated the code accordingly.
C++
This repository contains some useful algorithms and data structures.
Contribute
How you can contribute? See this small guide.
- Use the directory structure of the repository.
- Please describe your pull requests.
- Don't use bits/stdc++.h because this is quite Linux specific and slow down the compiler process.
- Put in comments in your code.
- Avoid struct uses instead the class keyword.
- Add some test cases in the main-function.
Description
Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
https://thealgorithms.github.io/C-Plus-Plus
algorithmalgorithm-competitionsalgorithmsalgorithms-implementedartificial-intelligence-algorithmscomputer-sciencecppdata-structureseducationalhacktoberfestinstructor-materialsinterview-preparationinterview-questionsmachine-learningmachine-learning-algorithmsmathematicssearchsort
Readme
MIT
196 MiB
Languages
C++
98.6%
CMake
1.3%