Giter Club home page Giter Club logo

dsa-java's Introduction

DSA- Java

  1. 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.
  2. Codes are divided into different folders according to their classification like Algorithms, search, datastructure.

Usage

  1. Import package by import {DIRECTORY_TYPE}.{FOLDER_NAME}.{FILE_NAME}.{CLASS_NAME_IF_APPLICABLE};
    Example :- import algorithms.search.BinarySearch;
  2. 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);
  3. Use functions of class by {IDENTIFIER}.{FUNCTION_OF_CLASS}({PARAMETER_IF_ANY});
    Example :- return bs.search(23);
  4. Found issue : Please inform us by making a new Issue in Issues.

Contribution Guide :octocat:

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 :

  1. Fork this repository.
  2. Clone into your local repository git clone [email protected]:{YOUR_USERNAME}/DSA-Java.git
  3. Change to a new branch git checkout -b {BRANCH_NAME}
  4. Write your code.
  5. Commit changes of your code git add * git commit -m "{COMMIT_MESSAGEE}"
  6. Push to git git push origin {BRANCH_NAME}

First some ground rules :

  1. If making a PR for a existing issue commit message should be Fixes: #{ISSUE_NO}.
  2. If Issue doesn't exist add want to add a new featuer or change, make a Issue first and follow rule 1.
  3. Complete the PR templete and fill required feilds, otherwise PR may not be considered.
  4. PR should pass all the automated test.
  5. 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.
  6. Code should be Generic if a algorithm or Data Structure.
  7. Format code before submitting with google-java-format. Run the following codes in your directory-
    1. 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
    2. 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. Gitter chatย 

dsa-java's People

Contributors

akmo3 avatar kostasthan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gitter-badger

dsa-java's Issues

Update README.md

The README needs to be updated-

  1. Users should be able to directly import the class with class name itself. So remove Note and update examples in usage section.
  2. Edit point 5 in contribution.
  3. Add instruction to format code with google-java-format .

Algorithm: Add binary seach

Binary Search

  1. Binary Search is one of the most used algo in real world. It would be a great first addition to repo.
  2. Add Binary Search that can be used to search different data types at once.

update README

Update README.md adding usage instruction and contributing instruction

Format code to remove main() from actual code.

Right now I think this change has to bought as it not easy just to import class and directly use it. We would like to give this kind of functionality. It would be recommendable just comment the main() method, just to show illustration of how to use that class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.