C++ 算法大全
Go to file
WoWS17 6027480643
feat: add well-formed parentheses generator (#2445)
* feat: add well-formed parentheses generator

* updating DIRECTORY.md

* changes made

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* Update backtracking/generate_parentheses.cpp

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

* chore: apply suggestions from code review

* Update backtracking/generate_parentheses.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* updating DIRECTORY.md

---------

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
2023-05-16 13:32:47 -06:00
.github chore: update the CodeQL workflow (#2449) 2023-04-14 17:41:02 -06:00
.vscode feat: Created composite Simpson's numerical integration method (#1773) 2021-11-03 12:22:08 -06:00
backtracking feat: add well-formed parentheses generator (#2445) 2023-05-16 13:32:47 -06: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 feat: Segment Tree Data Structure (#2444) 2023-04-28 08:43:22 -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 fix: fit euler's totient to the contribution guidelines (#2447) 2023-04-28 13:56:52 -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: add Stooge sort algorithm (#2440) 2023-04-14 17:53:25 -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 fix: self-test example not working 2023-04-26 19:08:19 -06:00
DIRECTORY.md feat: add well-formed parentheses generator (#2445) 2023-05-16 13:32:47 -06:00
LICENSE chore: update copyright notices to 2022 2022-09-07 19:12:34 -05:00
README.md chore: fix CodeQL badge 2023-04-23 00:23:50 -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.