Skip to content

Commit 402c562

Browse files
authored
Merge branch 'master' into cmake-version-update
2 parents 2b63954 + d7a9869 commit 402c562

File tree

11 files changed

+787
-87
lines changed

11 files changed

+787
-87
lines changed

.github/workflows/awesome_workflow.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/filename_formatter.sh
2828
chmod +x filename_formatter.sh
2929
./filename_formatter.sh . .cpp,.hpp
30-
- name: Update DIRECTORY.md
31-
run: |
32-
wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/build_directory_md.py
33-
python3 build_directory_md.py C-Plus-Plus . .cpp,.hpp,.h > DIRECTORY.md
34-
git commit -m "updating DIRECTORY.md" DIRECTORY.md || true
3530
- name: Get file changes
3631
run: |
3732
git branch
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Directory writer
2+
on:
3+
push:
4+
branches:
5+
- main
6+
schedule:
7+
# ┌───────────── minute (0 - 59)
8+
# │ ┌───────────── hour (0 - 23)
9+
# │ │ ┌───────────── day of the month (1 - 31)
10+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
11+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12+
# │ │ │ │ │
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# * * * * *
16+
- cron: '0 0 * * 1'
17+
jobs:
18+
build:
19+
if: github.repository == 'TheAlgorithms/C-Plus-Plus' # We only need this to run in our repository.
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
- name: Build directory
26+
uses: TheAlgorithms/scripts/directory_md@main
27+
with:
28+
language: C-Plus-Plus
29+
working-directory: .
30+
filetypes: .cpp,.hpp,.h
31+
ignored-directories: doc/

.vscode/settings.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,33 @@
5959
"stdexcept": "cpp",
6060
"streambuf": "cpp",
6161
"typeinfo": "cpp",
62-
"valarray": "cpp"
62+
"valarray": "cpp",
63+
"bit": "cpp",
64+
"charconv": "cpp",
65+
"compare": "cpp",
66+
"concepts": "cpp",
67+
"format": "cpp",
68+
"forward_list": "cpp",
69+
"ios": "cpp",
70+
"locale": "cpp",
71+
"queue": "cpp",
72+
"stack": "cpp",
73+
"xfacet": "cpp",
74+
"xhash": "cpp",
75+
"xiosbase": "cpp",
76+
"xlocale": "cpp",
77+
"xlocbuf": "cpp",
78+
"xlocinfo": "cpp",
79+
"xlocmes": "cpp",
80+
"xlocmon": "cpp",
81+
"xlocnum": "cpp",
82+
"xloctime": "cpp",
83+
"xmemory": "cpp",
84+
"xstddef": "cpp",
85+
"xstring": "cpp",
86+
"xtr1common": "cpp",
87+
"xtree": "cpp",
88+
"xutility": "cpp",
89+
"climits": "cpp"
6390
}
6491
}

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ add_subdirectory(graph)
4545
add_subdirectory(divide_and_conquer)
4646
add_subdirectory(games)
4747
add_subdirectory(cpu_scheduling_algorithms)
48+
add_subdirectory(physics)
4849

4950
cmake_policy(SET CMP0054 NEW)
5051
cmake_policy(SET CMP0057 NEW)

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
* [Md5](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/hashing/md5.cpp)
172172
* [Quadratic Probing Hash Table](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/hashing/quadratic_probing_hash_table.cpp)
173173
* [Sha1](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/hashing/sha1.cpp)
174+
* [Sha256](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/hashing/sha256.cpp)
174175

175176
## Machine Learning
176177
* [A Star Search](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/machine_learning/a_star_search.cpp)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This repository is a collection of open-source implementation of a variety of al
2121
* The repository provides implementations of various algorithms in one of the most fundamental general purpose languages - [C++](https://en.wikipedia.org/wiki/C%2B%2B).
2222
* Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
2323
* Each source code is atomic using [STL classes](https://en.wikipedia.org/wiki/Standard_Template_Library) and _no external libraries_ are required for their compilation and execution. Thus, the fundamentals of the algorithms can be studied in much depth.
24-
* Source codes are [compiled and tested](https://github.com/TheAlgorithms/C-Plus-Plus/actions?query=workflow%3A%22Awesome+CI+Workflow%22) 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.
24+
* Source codes are [compiled and tested](https://github.com/TheAlgorithms/C-Plus-Plus/actions?query=workflow%3A%22Awesome+CI+Workflow%22) for every commit on the latest versions of three major operating systems viz., Windows, MacOS, and Ubuntu (Linux) using MSVC 19 2022, AppleClang 14.0.0, and GNU 11.3.0 respectively.
2525
* Strict adherence to [C++11](https://en.wikipedia.org/wiki/C%2B%2B11) standard ensures portability of code to embedded systems as well like ESP32, ARM Cortex, etc. with little to no changes.
2626
* Self-checks within programs ensure correct implementations with confidence.
2727
* Modular implementations and OpenSource licensing enable the functions to be utilized conveniently in other applications.

0 commit comments

Comments
 (0)