Skip to content

CppAlgorithms is a comprehensive collection of C++ implementations for a wide range of algorithms, including solutions to problems from platforms like LeetCode, USACO, and more. This repository serves as a valuable resource for understanding and mastering algorithmic concepts, with well-organized code examples.

License

Notifications You must be signed in to change notification settings

mhs-club/cpp-algorithms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CppAlgorithms

CppAlgorithms is a comprehensive collection of C++ implementations for various fundamental and advanced algorithms. This repository is designed to serve as a valuable resource for students, educators, and developers looking to deepen their understanding of algorithmic concepts through well-organized code examples and detailed explanations.

Table of Contents

Introduction

This repository provides a wide range of algorithms implemented in C++. Each algorithm is organized by category, and every implementation is accompanied by a corresponding Markdown file explaining the algorithm in detail. Whether you're preparing for coding interviews, academic exams, or just want to improve your algorithmic skills, this repository is an excellent starting point.

Directory Structure

CppAlgorithms/
├── sorting/
├── searching/
├── data_structures/
├── recursion_divide_conquer/
├── dynamic_programming/
├── greedy/
├── graph_algorithms/
├── string_algorithms/
├── math/
├── geometry/
├── union_find/
└── advanced_data_structures/

Note: Each folder contains C++ implementations of the algorithms within that category, along with Markdown files providing explanations.

Algorithms Covered

Sorting Algorithms

How to Use

Clone the Repository:

git clone https://github.com/yourusername/CppAlgorithms.git
cd CppAlgorithms

Navigate to the Algorithm Category:

cd sorting

Compile and Run the C++ File:

g++ bubble_sort.cpp -o bubble_sort
./bubble_sort

Read the Markdown File:

Each algorithm's explanation is available in the corresponding Markdown file (*.md). These files contain a detailed explanation of the algorithm, including its complexity, use cases, and code walkthrough.

Contributing

Contributions are welcome! If you'd like to contribute to this repository, please follow these steps:

  1. Fork this repository.
  2. Create a new branch (git checkout -b new-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new algorithm').
  5. Push to the branch (git push origin new-branch).
  6. Create a new Pull Request.

License

This repository is licensed under the MIT License. See LICENSE for more information.

About

CppAlgorithms is a comprehensive collection of C++ implementations for a wide range of algorithms, including solutions to problems from platforms like LeetCode, USACO, and more. This repository serves as a valuable resource for understanding and mastering algorithmic concepts, with well-organized code examples.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%