Skip to content

Commit ed33d37

Browse files
committed
Merge branch 'main' of github.bc:bcExpt1123/java-alda
2 parents 34623d7 + e2d5315 commit ed33d37

3 files changed

Lines changed: 187 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Contributing to Java Algorithms and Data Structures
2+
3+
Thank you for taking the time to contribute to this project! Here are a few guidelines to help you get started.
4+
5+
## How to Contribute
6+
7+
1. **Fork the repository**: Click the 'Fork' button at the top right of the repository page to create a copy of the repository in your GitHub account.
8+
9+
2. **Clone the repository**: Clone your forked repository to your local machine using the following command:
10+
```sh
11+
git clone https://github.com/your-username/java-alda.git
12+
```
13+
14+
3. **Create a branch**: Create a new branch for your work using the following command:
15+
```sh
16+
git checkout -b your-branch-name
17+
```
18+
19+
4. **Make your changes**: Implement your changes in the new branch. Ensure your code follows the project's coding standards and passes all tests.
20+
21+
5. **Commit your changes**: Commit your changes with a meaningful commit message using the following commands:
22+
```sh
23+
git add .
24+
git commit -m "Description of your changes"
25+
```
26+
27+
6. **Push your changes**: Push your changes to your forked repository using the following command:
28+
```sh
29+
git push origin your-branch-name
30+
```
31+
32+
7. **Create a pull request**: Navigate to the original repository on GitHub and create a pull request from your forked repository. Provide a clear description of your changes and any related issue numbers.
33+
34+
## Code of Conduct
35+
36+
This project follows the [Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/2/0/code_of_conduct/). By participating, you are expected to uphold this code. Please report unacceptable behavior to bcexpt1123@gmail.com.
37+
38+
## Reporting Issues
39+
40+
If you encounter any issues while using the project, please check if the issue has already been reported. If not, create a new issue with a clear description of the problem, steps to reproduce it, and any relevant information.
41+
42+
## Coding Standards
43+
44+
- Ensure your code is well-documented and follows the project's coding style.
45+
- Write tests for your code and ensure all tests pass before submitting a pull request.
46+
47+
Thank you for contributing!

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Magni - God of Strength
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 119 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,119 @@
1-
# Java Algorithm And Data Structure
1+
# Java Algorithms and Data Structures
2+
3+
This repository contains implementations of various algorithms and data structures in Java. It is intended as a resource for learning and reference.
4+
5+
## Table of Contents
6+
7+
- [Introduction](#introduction)
8+
- [Algorithms](#algorithms)
9+
- [Sorting Algorithms](#sorting-algorithms)
10+
- [Searching Algorithms](#searching-algorithms)
11+
- [Graph Algorithms](#graph-algorithms)
12+
- [Dynamic Programming](#dynamic-programming)
13+
- [Data Structures](#data-structures)
14+
- [Arrays](#arrays)
15+
- [Linked Lists](#linked-lists)
16+
- [Stacks](#stacks)
17+
- [Queues](#queues)
18+
- [Trees](#trees)
19+
- [Graphs](#graphs)
20+
- [Installation](#installation)
21+
- [Usage](#usage)
22+
- [Contributing](#contributing)
23+
- [License](#license)
24+
25+
## Introduction
26+
27+
This repository is a collection of algorithms and data structures implemented in Java. Each algorithm and data structure has its own folder containing the Java code and a README file explaining the implementation and usage.
28+
29+
## Algorithms
30+
31+
### Sorting Algorithms
32+
33+
- Bubble Sort
34+
- Selection Sort
35+
- Insertion Sort
36+
- Merge Sort
37+
- Quick Sort
38+
- Heap Sort
39+
40+
### Searching Algorithms
41+
42+
- Linear Search
43+
- Binary Search
44+
45+
### Graph Algorithms
46+
47+
- Depth-First Search (DFS)
48+
- Breadth-First Search (BFS)
49+
- Dijkstra's Algorithm
50+
- A* Search Algorithm
51+
52+
### Dynamic Programming
53+
54+
- Fibonacci Sequence
55+
- Knapsack Problem
56+
57+
## Data Structures
58+
59+
### Arrays
60+
61+
Implementation and usage of arrays.
62+
63+
### Linked Lists
64+
65+
- Singly Linked List
66+
- Doubly Linked List
67+
- Circular Linked List
68+
69+
### Stacks
70+
71+
Implementation and usage of stacks.
72+
73+
### Queues
74+
75+
- Simple Queue
76+
- Circular Queue
77+
- Priority Queue
78+
79+
### Trees
80+
81+
- Binary Tree
82+
- Binary Search Tree
83+
- AVL Tree
84+
- Red-Black Tree
85+
- B-Tree
86+
87+
### Graphs
88+
89+
Implementation and usage of graphs.
90+
91+
## Installation
92+
93+
1. Clone the repository:
94+
```sh
95+
git clone https://github.com/bcExpt1123/java-alda.git
96+
```
97+
2. Navigate to the project directory:
98+
```sh
99+
cd java-alda
100+
```
101+
102+
## Usage
103+
104+
Each algorithm and data structure has its own folder. Navigate to the folder of the algorithm or data structure you want to use and compile the Java file:
105+
```sh
106+
javac FileName.java
107+
```
108+
Run the compiled Java file:
109+
```sh
110+
java FileName
111+
```
112+
113+
## Contributing
114+
115+
Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) for more details.
116+
117+
## License
118+
119+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)