Skip to content

Commit 1409a6e

Browse files
authored
Merge branch 'master' into add-array-rotation-utility
2 parents 0afa70b + 9a13ce0 commit 1409a6e

106 files changed

Lines changed: 4272 additions & 687 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8+
cooldown:
9+
default-days: 7
810

911
- package-ecosystem: "github-actions"
1012
directory: "/.github/workflows/"
1113
schedule:
1214
interval: "daily"
15+
cooldown:
16+
default-days: 7
1317

1418
- package-ecosystem: "maven"
1519
directory: "/"
1620
schedule:
1721
interval: "daily"
22+
cooldown:
23+
default-days: 7
1824
...

‎.github/workflows/build.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v6
11+
- uses: actions/checkout@v7
1212
- name: Set up JDK
13-
uses: actions/setup-java@v5
13+
uses: actions/setup-java@v5.7.0
1414
with:
1515
java-version: 21
1616
distribution: 'temurin'
@@ -20,15 +20,15 @@ jobs:
2020
if: >-
2121
github.event_name == 'pull_request' &&
2222
github.event.pull_request.head.repo.full_name != github.repository
23-
uses: codecov/codecov-action@v6
23+
uses: codecov/codecov-action@v7
2424
with:
2525
fail_ci_if_error: true
2626
- name: Upload coverage to codecov (with token)
2727
if: >
2828
github.repository == 'TheAlgorithms/Java' &&
2929
(github.event_name != 'pull_request' ||
3030
github.event.pull_request.head.repo.full_name == github.repository)
31-
uses: codecov/codecov-action@v6
31+
uses: codecov/codecov-action@v7
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }}
3434
fail_ci_if_error: true

‎.github/workflows/clang-format-lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@v7
1515
- uses: DoozyX/clang-format-lint-action@v0.20
1616
with:
1717
source: './src'

‎.github/workflows/codeql.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@v7
2525

2626
- name: Set up JDK
27-
uses: actions/setup-java@v5
27+
uses: actions/setup-java@v5.7.0
2828
with:
2929
java-version: 21
3030
distribution: 'temurin'
3131

3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v4
33+
uses: github/codeql-action/init@v4.37.8
3434
with:
3535
languages: 'java-kotlin'
3636

3737
- name: Build
3838
run: mvn --batch-mode --update-snapshots verify
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@v4
41+
uses: github/codeql-action/analyze@v4.37.8
4242
with:
4343
category: "/language:java-kotlin"
4444

@@ -52,15 +52,15 @@ jobs:
5252

5353
steps:
5454
- name: Checkout repository
55-
uses: actions/checkout@v6
55+
uses: actions/checkout@v7
5656

5757
- name: Initialize CodeQL
58-
uses: github/codeql-action/init@v4
58+
uses: github/codeql-action/init@v4.37.8
5959
with:
6060
languages: 'actions'
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@v4
63+
uses: github/codeql-action/analyze@v4.37.8
6464
with:
6565
category: "/language:actions"
6666
...

‎.github/workflows/infer.yml‎

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,16 @@ jobs:
1515
run_infer:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v7
1919

2020
- name: Set up JDK
21-
uses: actions/setup-java@v5
21+
uses: actions/setup-java@v5.7.0
2222
with:
2323
java-version: 21
2424
distribution: 'temurin'
2525

26-
- name: Set up OCaml
27-
uses: ocaml/setup-ocaml@v3
28-
with:
29-
ocaml-compiler: 5
30-
31-
- name: Get current year/weak
32-
run: echo "year_week=$(date +'%Y_%U')" >> $GITHUB_ENV
33-
34-
- name: Cache infer build
35-
id: cache-infer
36-
uses: actions/cache@v5
37-
with:
38-
path: infer
39-
key: ${{ runner.os }}-infer-${{ env.year_week }}
40-
41-
- name: Build infer
42-
if: steps.cache-infer.outputs.cache-hit != 'true'
43-
run: |
44-
cd ..
45-
git clone https://github.com/facebook/infer.git
46-
cd infer
47-
git checkout 02c2c43b71e4c5110c0be841e66153942fda06c9
48-
./build-infer.sh java
49-
cp -r infer ../Java
50-
51-
- name: Add infer to PATH
52-
run: |
53-
echo "infer/bin" >> $GITHUB_PATH
26+
- name: Set up inferAdd commentMore actions
27+
uses: srz-zumix/setup-infer@v1
5428

5529
- name: Display infer version
5630
run: |
@@ -60,5 +34,5 @@ jobs:
6034
- name: Run infer
6135
run: |
6236
mvn clean
63-
infer --fail-on-issue --print-logs --no-progress-bar -- mvn test
37+
infer --java-version 21 --fail-on-issue --print-logs --no-progress-bar -- mvn test
6438
...

‎.github/workflows/project_structure.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
check_structure:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-python@v6
18+
- uses: actions/checkout@v7
19+
- uses: actions/setup-python@v7.0.0
2020
with:
2121
python-version: '3.13'
2222

‎.github/workflows/stale.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
pull-requests: write
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/stale@v10
14+
- uses: actions/stale@v11.0.0
1515
with:
1616
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!'
1717
close-issue-message: 'Please reopen this issue once you have made the required changes. If you need help, feel free to ask in our [Discord](https://the-algorithms.com/discord) server or ping one of the maintainers here. Thank you for your contribution!'

‎.github/workflows/update-directorymd.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate Directory Markdown
1+
name: Generate Directory Markdown
22

33
on:
44
push:
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Repository
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@v7
1818
with:
1919
persist-credentials: false
2020

‎.inferconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java",
2222
"src/test/java/com/thealgorithms/datastructures/trees/KDTreeTest.java",
2323
"src/test/java/com/thealgorithms/datastructures/trees/LazySegmentTreeTest.java",
24+
"src/test/java/com/thealgorithms/dynamicprogramming/DamerauLevenshteinDistanceTest.java",
2425
"src/test/java/com/thealgorithms/others/HuffmanTest.java",
2526
"src/test/java/com/thealgorithms/searches/QuickSelectTest.java",
2627
"src/test/java/com/thealgorithms/stacks/PostfixToInfixTest.java",

‎pmd-exclude.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ com.thealgorithms.others.MosAlgorithm=UselessMainMethod
8686
com.thealgorithms.others.PageRank=UselessMainMethod,UselessParentheses
8787
com.thealgorithms.others.PerlinNoise=UselessMainMethod,UselessParentheses
8888
com.thealgorithms.others.QueueUsingTwoStacks=UselessParentheses
89-
com.thealgorithms.others.Trieac=UselessMainMethod,UselessParentheses
89+
com.thealgorithms.datastructures.trees.TrieAutocomplete=UselessMainMethod,UselessParentheses
9090
com.thealgorithms.others.Verhoeff=UnnecessaryFullyQualifiedName,UselessMainMethod
9191
com.thealgorithms.recursion.DiceThrower=UselessMainMethod
9292
com.thealgorithms.searches.HowManyTimesRotated=UselessMainMethod

0 commit comments

Comments
 (0)