C++ 算法大全
Go to file
futoid fddbf08f5a
feat: added log code for counting digits (#2234)
* added log code for counting digits

* one space removed

* fix: CI warnings (hopefully)

* fix: revert for now

* decoupled test functions

* Update math/finding_number_of_digits_in_a_number.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update math/finding_number_of_digits_in_a_number.cpp

typo changes

Co-authored-by: David Leal <halfpacho@gmail.com>

* uint64_t changed to double to resolve clang-tidy warnings

* clang-format and clang-tidy fixes for 61bb2dea

* comment improvement

* clang-format and clang-tidy fixes for 39ebc33d

* guarded required function

---------

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-04-14 12:40:14 -06:00
.github feat: improve the Awesome Workflow (#2408) 2022-12-16 16:52:48 -06:00
.vscode feat: Created composite Simpson's numerical integration method (#1773) 2021-11-03 12:22:08 -06:00
backtracking fix: Sudoku Solver algorithm filename 2022-08-24 19:29:21 -05:00
bit_manipulation [fix/feat]: remove memory leak in avltree.cpp (#2429) 2023-02-03 18:40:26 -06:00
ciphers fix: CodeQL warnings (#1827) 2021-11-07 11:49:33 -06:00
cpu_scheduling_algorithms feat: Added implementation of FCFS CPU scheduling algorithm (#1684) 2021-10-15 11:34:00 -05:00
data_structures fix: remove memory leak in reverse_a_linked_list.cpp (#2439) 2023-03-30 14:19:26 -06:00
divide_and_conquer feat: add Strassen's Matrix Multiplication (#2413) 2023-01-24 14:03:06 -06:00
doc Major rework to improve code quality and add automation checks (#805) 2020-06-19 21:34:56 +05:30
dynamic_programming feat: add maximum circular subarray sum (#2242) 2023-02-06 14:11:52 -06:00
geometry feat: Added Graham Scan Algorithm. (#1836) 2021-11-14 10:56:46 -06:00
graph feat: Created midpoint integration numerical method (#1785) 2021-11-01 07:56:40 -06:00
graphics chore: update FreeGLUT to v3.2.2 (#2432) 2023-01-31 10:20:47 -06:00
greedy_algorithms feat: add Strassen's Matrix Multiplication (#2413) 2023-01-24 14:03:06 -06:00
hashing feat. Add SHA-1 hashing algorithm (#1609) 2021-09-24 14:59:26 -05:00
machine_learning feat: add k-nearest neighbors algorithm (#2416) 2023-01-31 13:47:26 -06:00
math feat: added log code for counting digits (#2234) 2023-04-14 12:40:14 -06:00
numerical_methods feat: move gram_schmidt to numerical_methods (#1940) 2022-06-09 10:09:03 -05:00
operations_on_datastructures fix: Circular linked list (#1825) 2021-11-02 11:03:49 -06:00
others fix: stairs pattern not printing slash (#2111) 2022-11-18 15:24:39 -06:00
physics feat: added physics directory and ground to ground projectile motion algorithm (#2279) 2022-10-26 03:01:34 +05:30
probability feat: Modify search/text_search.cpp (#1662) 2021-10-14 13:34:55 -05:00
range_queries feat: add Strassen's Matrix Multiplication (#2413) 2023-01-24 14:03:06 -06:00
search feat: add new Median Search implementation (#1992) 2022-09-26 11:28:55 -05:00
sorting [feat/docs]: improve the quick_sort.cpp algorithm (#2396) 2022-12-01 11:29:28 -06:00
strings feat: add binary_insertion_sort (#1850) 2022-01-11 12:39:41 -06:00
.clang-format [bug fix] fix code formatting in CI (#1052) 2020-08-26 10:48:08 -04:00
.clang-tidy [code fix] Fixed trie_tree for code quality and docs & clang-tidy error check (#1059) 2020-08-27 12:30:14 -04:00
.gitignore Major rework to improve code quality and add automation checks (#805) 2020-06-19 21:34:56 +05:30
.gitpod.dockerfile install freeglut3-dev (#973) 2020-07-23 15:51:48 -04:00
.gitpod.yml fix: remove the ms-vscode.cpptools extension 2021-11-05 18:39:50 -06:00
CMakeLists.txt feat: add CMakeLists to the divide_and_conquer directory (#2072) 2022-10-28 19:56:45 -05:00
CODE_OF_CONDUCT.md fix: Update the CoC to match the .github repository (#1832) 2021-10-31 21:05:51 -06:00
CodingGuidelines.md [feat/fix]: Improve the contributing guidelines... (#1522) 2021-07-05 22:02:33 -05:00
CONTRIBUTING.md docs: add guide on integrating CMake (#2410) 2022-12-21 10:37:27 -06:00
DIRECTORY.md feat: add Sieve of Eratosthenes (originally by @thechubbypanda) (#2442) 2023-03-29 14:24:13 -06:00
LICENSE chore: update copyright notices to 2022 2022-09-07 19:12:34 -05:00
README.md chore: remove LGTM and fix... 2022-12-16 19:40:18 -06:00
REVIEWER_CODE.md feat: guidelines for reviewers (#1302) 2020-10-16 16:18:38 -04:00

The Algorithms - C++

Gitpod Ready-to-Code CodeQL CI Gitter chat contributions welcome GitHub repo size Doxygen CI Awesome CI Income Discord chat Donate

Overview

This repository is a collection of open-source implementation of a variety of algorithms implemented in C++ and licensed under MIT License. These algorithms span a variety of topics from computer science, mathematics and statistics, data science, machine learning, engineering, etc.. The implementations and the associated documentation are meant to provide a learning resource for educators and students. Hence, one may find more than one implementation for the same objective but using a different algorithm strategies and optimizations.

Features

  • The repository provides implementations of various algorithms in one of the most fundamental general purpose languages - C++.
  • Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
  • Each source code is atomic using STL classes and no external libraries are required for their compilation and execution. Thus, the fundamentals of the algorithms can be studied in much depth.
  • Source codes are compiled and tested for every commit on the latest versions of three major operating systems viz., Windows, MacOS and Ubuntu (Linux) using MSVC 16 2019, AppleClang 11.0 and GNU 7.5.0 respectively.
  • Strict adherence to C++11 standard ensures portability of code to embedded systems as well like ESP32, ARM Cortex, etc. with little to no changes.
  • Self-checks within programs ensure correct implementations with confidence.
  • Modular implementations and OpenSource licensing enable the functions to be utilized conveniently in other applications.

Documentation

Online Documentation is generated from the repository source codes directly. The documentation contains all resources including source code snippets, details on execution of the programs, diagrammatic representation of program flow, and links to external resources where necessary. The documentation also introduces interactive source code with links to documentation for C++ STL library functions used. Click on Files menu to see the list of all the files documented with the code.

Documentation of Algorithms in C++ by The Algorithms Contributors is licensed under CC BY-SA 4.0
Creative Commons LicenseCredit must be given to the creatorAdaptations must be shared under the same terms

Contributions

As a community developed and maintained repository, we welcome new un-plagiarized quality contributions. Please read our Contribution Guidelines.