- This Is A Repositry that is meant to contain all new Data Structures And Algorithms of Java along with other codes like of Crytography, Dynamic Programming, and some medium-large size codes also like of Andoid Development.
- Codes are divided into different folders according to their classification like Algorithms, search, datastructure.
- Import package by
import {DIRECTORY_TYPE}.{FOLDER_NAME}.{FILE_NAME}.{CLASS_NAME_IF_APPLICABLE};
Example :-import algorithms.search.BinarySearch;
- Create instance of class by
{CLASS_NAME}<> {IDENTIFIER_OF_YOUR_CHOICE} = new {CLASS_NAME}<>({PARAMETER_IF_ANY});
Example :-BinarySearch<Integer> bs = new BinarySearch<Integer>(a);
- Use functions of class by
{IDENTIFIER}.{FUNCTION_OF_CLASS}({PARAMETER_IF_ANY});
Example :-return bs.search(23);
- Found issue : Please inform us by making a new Issue in Issues.
First, we would congratulate you for joining our community:wave:. A warm welcome from our side:tada:. We look forward to your jounery with us. :boom:
Setting Environment :
- Fork this repository.
- Clone into your local repository
git clone git@github.com:{YOUR_USERNAME}/DSA-Java.git
- Change to a new branch
git checkout -b {BRANCH_NAME}
- Write your code.
- Commit changes of your code
git add *
git commit -m "{COMMIT_MESSAGEE}"
- Push to git
git push origin {BRANCH_NAME}
First some ground rules :
- If making a PR for a existing issue commit message should be
Fixes: #{ISSUE_NO}
. - If Issue doesn't exist add want to add a new featuer or change, make a Issue first and follow rule 1.
- Complete the PR templete and fill required feilds, otherwise PR may not be considered.
- PR should pass all the automated test.
- The main working class should be
{FILE_NAME}
. Also the main() function should be comented showing how calling of class and using some of its function. While this may not always be possible. - Code should be Generic if a algorithm or Data Structure.
- Format code before submitting with google-java-format. Run the following codes in your directory-
wget https://github.com/google/google-java-format/releases/download/google-java-format-1.9/google-java-format-1.9-all-deps.jar -O formatter.jar
java -jar formatter.jar --replace --set-exit-if-changed {FILE_NAME.java}
Enough of rules now, Join our community to talk with fellow members and learn.