{"id":21905805,"url":"https://github.com/an4b4515/data-structures","last_synced_at":"2025-03-22T07:19:04.400Z","repository":{"id":252800680,"uuid":"801558683","full_name":"An4b4515/data-structures","owner":"An4b4515","description":"Most common Data-Structures and Algorithms implemented in Java from scratch ☕ ♨️","archived":false,"fork":false,"pushed_at":"2024-08-29T16:15:13.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T07:30:00.696Z","etag":null,"topics":["algorithms","bstree","data-structures","graph","hashtable","java","linear","linked-list","nonlinear","queue","searching-algorithms","sorting","stack"],"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/An4b4515.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-16T13:15:43.000Z","updated_at":"2024-08-29T16:15:17.000Z","dependencies_parsed_at":"2024-08-12T16:52:22.889Z","dependency_job_id":"ed1d4e17-19c4-4977-bac6-5480afe89e64","html_url":"https://github.com/An4b4515/data-structures","commit_stats":null,"previous_names":["an4b4515/data-structures"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4b4515%2Fdata-structures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4b4515%2Fdata-structures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4b4515%2Fdata-structures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4b4515%2Fdata-structures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/An4b4515","download_url":"https://codeload.github.com/An4b4515/data-structures/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244919379,"owners_count":20531794,"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","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":["algorithms","bstree","data-structures","graph","hashtable","java","linear","linked-list","nonlinear","queue","searching-algorithms","sorting","stack"],"created_at":"2024-11-28T16:38:02.920Z","updated_at":"2025-03-22T07:19:04.381Z","avatar_url":"https://github.com/An4b4515.png","language":"Java","readme":"# Data-Structures \u0026 Algorithms\n\nThis repository contains some of the most commonly used data-structures and algorithms implemented in the Java programming language.\n\nThe types are *generic* meaning they can work with multiple data-types as long as they have the necessary characteristics, like being comparable.\n\n\n# Compile it yourself (command-line)\n\nThe `sources` file stored in the root directory of the project, contains a list of all *compilation-units*.\n\nYou can generate this file yourself in **UNIX** by using the following command (assuming you are in the root directory of the project):\n\n`find ./algorithms ./dataStructures -type f -iname \"*.java\" \u003esources`\n\nAfter that, you can compile the program as follows:\n\n`javac @sources -d ./bin`\n\nThis makes the compilation process easier by not explicitly stating all file paths.\n\n\n# JAR File\n\nThis repository already includes the entire project's pre-compiled classes on a JAR archive file named `structures_and_algorithms.jar`.\n\nIf you want to create this file yourself, you can go to the directory you compiled the program and execute this command:\n\n`jar -cf foo.jar ./algorithms ./dataStructures`\n\nThen ensure all *.class* files are included:\n\n`jar -tf foo.jar`\n\n\n# Including these packages to your other projects\n\nYou need to add the path to the JAR file in the CLASSPATH *environment variable* (the place where java searches for classfiles).\n\nBelow is a simple solution to this:\n\n- UNIX:\n  + Compilation: `javac -cp \".:path_to_jar/structures_and_algorithms.jar\" Main.java your_other_source_files.java`\n  + Execution: `java -cp \".:path_to_jar/structures_and_algorithms.jar\" Main`\n\n- Windows:\n  + Compilation: `javac -cp \".;path_to_jar/structures_and_algorithms.jar\" Main.java your_other_source_files.java`\n  + Execution: `java -cp \".;path_to_jar/structures_and_algorithms.jar\" Main`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan4b4515%2Fdata-structures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan4b4515%2Fdata-structures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan4b4515%2Fdata-structures/lists"}