From 6daf7015e31d079ae5896bb20719e46ccf8dd821 Mon Sep 17 00:00:00 2001 From: David Leal Date: Fri, 4 Aug 2023 15:06:36 -0600 Subject: [PATCH 1/6] chore: run directory workflow daily --- .github/workflows/directory_writer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/directory_writer.yml b/.github/workflows/directory_writer.yml index 3264c0324be..48f71505cdf 100644 --- a/.github/workflows/directory_writer.yml +++ b/.github/workflows/directory_writer.yml @@ -10,7 +10,7 @@ on: # │ │ │ │ │ # │ │ │ │ │ # * * * * * - - cron: '0 0 * * 1' + - cron: '0 0 * * *' jobs: build: if: github.repository == 'TheAlgorithms/C-Plus-Plus' # We only need this to run in our repository. From f49369065c13e6cfee906de9dd0f5a6443f524e8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 11:35:38 -0600 Subject: [PATCH 2/6] docs: update DIRECTORY.md (#2521) Co-authored-by: github-actions[bot] --- DIRECTORY.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DIRECTORY.md b/DIRECTORY.md index 05ad073afcc..bda68918d88 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -20,7 +20,7 @@ * [Count Of Trailing Ciphers In Factorial N](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp) * [Find Non Repeating Number](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/find_non_repeating_number.cpp) * [Hamming Distance](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/hamming_distance.cpp) - * [next higher number with same number of set bits](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/next_higher_number_with_same_number_of_set_bits.cpp) + * [Next Higher Number With Same Number Of Set Bits](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/next_higher_number_with_same_number_of_set_bits.cpp) * [Power Of 2](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/power_of_2.cpp) * [Set Kth Bit](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/set_kth_bit.cpp) * [Travelling Salesman Using Bit Manipulation](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/bit_manipulation/travelling_salesman_using_bit_manipulation.cpp) @@ -79,6 +79,7 @@ * [Test Queue](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/test_queue.cpp) * [Test Stack](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/test_stack.cpp) * [Test Stack Students](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/test_stack_students.cpp) + * [Treap](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/treap.cpp) * [Tree](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/tree.cpp) * [Tree 234](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/tree_234.cpp) * [Trie Modern](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/data_structures/trie_modern.cpp) @@ -213,6 +214,7 @@ * [Integral Approximation](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/integral_approximation.cpp) * [Integral Approximation2](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/integral_approximation2.cpp) * [Inv Sqrt](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/inv_sqrt.cpp) + * [Iterative Factorial](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/iterative_factorial.cpp) * [Large Factorial](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/large_factorial.cpp) * [Large Number](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/large_number.h) * [Largest Power](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/math/largest_power.cpp) @@ -391,6 +393,7 @@ * [Wiggle Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/sorting/wiggle_sort.cpp) ## Strings + * [Boyer Moore](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/strings/boyer_moore.cpp) * [Brute Force String Searching](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/strings/brute_force_string_searching.cpp) * [Horspool](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/strings/horspool.cpp) * [Knuth Morris Pratt](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/strings/knuth_morris_pratt.cpp) From 23b133ae1eac4ad7e94e74da140d462180738413 Mon Sep 17 00:00:00 2001 From: David Leal Date: Wed, 6 Sep 2023 11:37:12 -0600 Subject: [PATCH 3/6] fix: GitHub Actions bot username on Awesome Workflow --- .github/workflows/awesome_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 32555bbbd29..a0b83987bfd 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Git Specs run: | git config --global user.name github-actions[bot] - git config --global user.email 'github-actions@users.noreply.github.com' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' - name: Filename Formatter run: | wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/filename_formatter.sh From 6376bf46aff52a1944d4efcd5ae884b39119cd34 Mon Sep 17 00:00:00 2001 From: David Leal Date: Wed, 27 Sep 2023 12:34:55 -0600 Subject: [PATCH 4/6] chore: add `workflow_dispatch` in directory workflow --- .github/workflows/directory_writer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/directory_writer.yml b/.github/workflows/directory_writer.yml index 48f71505cdf..dbb5449c6b0 100644 --- a/.github/workflows/directory_writer.yml +++ b/.github/workflows/directory_writer.yml @@ -11,6 +11,7 @@ on: # │ │ │ │ │ # * * * * * - cron: '0 0 * * *' + workflow_dispatch: jobs: build: if: github.repository == 'TheAlgorithms/C-Plus-Plus' # We only need this to run in our repository. From 6cd283950b5dfb2f85cd3abc9513c840400926b7 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Tue, 16 Jan 2024 02:38:58 +0100 Subject: [PATCH 5/6] chore: update `actions/checkout` to `v4` (#2530) --- .github/workflows/awesome_workflow.yml | 4 ++-- .github/workflows/codeql.yml | 2 +- .github/workflows/directory_writer.yml | 2 +- .github/workflows/gh-pages.yml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index a0b83987bfd..ffb5478778a 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -8,7 +8,7 @@ jobs: name: Code Formatter runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-python@v4 @@ -56,7 +56,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - run: | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 16da8867bf5..2b40ac59304 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/directory_writer.yml b/.github/workflows/directory_writer.yml index dbb5449c6b0..bb3b8395607 100644 --- a/.github/workflows/directory_writer.yml +++ b/.github/workflows/directory_writer.yml @@ -17,7 +17,7 @@ jobs: if: github.repository == 'TheAlgorithms/C-Plus-Plus' # We only need this to run in our repository. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build directory diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 134c04bb13d..b795dcadb56 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Install requirements @@ -19,7 +19,7 @@ jobs: - name: build run: cmake --build build -t doc - name: gh-pages - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "gh-pages" clean: false From 08900b8c983b861ddd9c2e1efe7bf0bdd53beb4a Mon Sep 17 00:00:00 2001 From: David Leal Date: Mon, 15 Jan 2024 20:02:44 -0600 Subject: [PATCH 6/6] chore: update copyright notice to 2024 --- LICENSE | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 2897d02e2a0..6912623e775 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,5 @@ -MIT License - -Copyright (c) 2016-2022 TheAlgorithms and contributors +The MIT License +Copyright (c) 2016-2024 TheAlgorithms and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal