{"id":17991,"url":"https://github.com/TheAlgorithms/Java","last_synced_at":"2026-07-14T18:20:22.018Z","repository":{"id":37236173,"uuid":"63477660","full_name":"TheAlgorithms/Java","owner":"TheAlgorithms","description":"All Algorithms implemented in Java","archived":false,"fork":false,"pushed_at":"2025-08-22T05:51:32.000Z","size":6518,"stargazers_count":62765,"open_issues_count":12,"forks_count":20150,"subscribers_count":2195,"default_branch":"master","last_synced_at":"2025-08-22T07:31:55.360Z","etag":null,"topics":["algorithm","algorithm-challenges","algorithms","algorithms-datastructures","data-structures","hacktoberfest","java","search","sort","sorting-algorithms"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheAlgorithms.png","metadata":{"files":{"readme":"README-ko.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"TheAlgorithms","issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-07-16T10:21:02.000Z","updated_at":"2025-08-22T06:45:46.000Z","dependencies_parsed_at":"2024-04-24T07:03:27.455Z","dependency_job_id":"2a9c28ab-4c89-4ba1-90d0-de35058ec880","html_url":"https://github.com/TheAlgorithms/Java","commit_stats":{"total_commits":1891,"total_committers":595,"mean_commits":"3.1781512605042015","dds":0.9323109465891063,"last_synced_commit":"27343e7aa874343cf084f767b1aaa71e9134bc5e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheAlgorithms/Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlgorithms%2FJava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlgorithms%2FJava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlgorithms%2FJava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlgorithms%2FJava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAlgorithms","download_url":"https://codeload.github.com/TheAlgorithms/Java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlgorithms%2FJava/sbom","scorecard":{"id":40715,"data":{"date":"2025-08-11","repo":{"name":"github.com/TheAlgorithms/Java","commit":"4d28c88d6e7081abca50bf0c82b2f4bbe3f74d2e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:19","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:49","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:50","Info: topLevel 'contents' permission set to 'read': .github/workflows/build.yml:5","Info: topLevel 'contents' permission set to 'read': .github/workflows/clang-format-lint.yml:7","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/infer.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/project_structure.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/stale.yml:6","Warn: topLevel 'contents' permission set to 'write': .github/workflows/update-directorymd.yml:9","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/clang-format-lint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/clang-format-lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/clang-format-lint.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/clang-format-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/infer.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/infer.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/infer.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/infer.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/infer.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/infer.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/infer.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/infer.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/project_structure.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/project_structure.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/project_structure.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/project_structure.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/stale.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-directorymd.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/update-directorymd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-directorymd.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/update-directorymd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-directorymd.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/TheAlgorithms/Java/update-directorymd.yml/master?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:5","Warn: containerImage not pinned by hash: .gitpod.dockerfile:1: pin your Docker image by updating gitpod/workspace-java-21:2025-06-18-16-47-14 to gitpod/workspace-java-21:2025-06-18-16-47-14@sha256:504bf8bba9382dca717f53c24a099b17ed6dfa619af9ba175c846dbe01bdce95","Info:   0 out of  17 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T21:26:17.959Z","repository_id":37236173,"created_at":"2025-08-14T21:26:17.959Z","updated_at":"2025-08-14T21:26:17.959Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271681484,"owners_count":24802077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","algorithm-challenges","algorithms","algorithms-datastructures","data-structures","hacktoberfest","java","search","sort","sorting-algorithms"],"created_at":"2024-01-11T18:54:56.925Z","updated_at":"2025-08-22T18:30:14.228Z","avatar_url":"https://github.com/TheAlgorithms.png","language":"Java","project_url":"https://opencollective.ecosyste.ms/api/v1/projects/17991","html_url":"https://opencollective.ecosyste.ms/projects/17991","collective":{"id":2427,"uuid":"vjrkx5lm-nv904qjd-7kzq8bwa-7zdygoe3","slug":"thealgorithms","name":"The Algorithms","description":"Open Source resource for learning Data Structures \u0026 Algorithms and their implementation in any Programming Language","website":"","github":"TheAlgorithms","twitter":null,"repository_url":null,"social_links":[{"type":"GITHUB","url":"https://github.com/TheAlgorithms"}],"currency":"USD","projects_count":49,"last_synced_at":"2026-07-23T12:15:15.926Z","created_at":"2024-01-10T13:17:52.340Z","updated_at":"2026-07-23T12:15:16.150Z","transactions_count":0,"balance":0.0,"account_type":"COLLECTIVE","owner":{"login":"TheAlgorithms","name":"The Algorithms","uuid":"20487725","kind":"organization","description":"Open Source resource for learning Data Structures \u0026 Algorithms and their implementation in any Programming Language","email":"hello@the-algorithms.com","website":"https://the-algorithms.com/","location":"India","twitter":"the_algorithms","company":null,"icon_url":"https://avatars.githubusercontent.com/u/20487725?v=4","repositories_count":48,"last_synced_at":"2024-10-29T20:08:23.955Z","metadata":{"has_sponsors_listing":false,"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"TheAlgorithms","issuehunt":null,"otechie":null,"custom":null}},"html_url":"https://github.com/TheAlgorithms","funding_links":["https://liberapay.com/TheAlgorithms"],"total_stars":370623,"followers":42583,"following":0,"created_at":"2022-11-14T05:56:19.782Z","updated_at":"2024-10-29T20:08:23.955Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAlgorithms","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAlgorithms/repositories"},"last_project_activity_at":"2025-10-04T18:13:58.000Z","archived":false,"no_funding":false,"no_license":false,"host":null,"collective_created_at":"2019-07-06T06:53:12.909Z","collective_updated_at":"2024-07-23T00:38:24.578Z","html_url":"https://opencollective.com/thealgorithms","icon_url":"https://images.opencollective.com/thealgorithms/logo/40.png","total_donations":0.0,"total_expenses":0.0,"current_balance":0.0,"api_url":"https://opencollective.ecosyste.ms/api/v1/collectives/thealgorithms","url":"https://opencollective.ecosyste.ms/collectives/thealgorithms","projects_url":"https://opencollective.ecosyste.ms/api/v1/collectives/thealgorithms/projects"}}