Skip to content

Latest commit

 

History

History
162 lines (109 loc) · 8.39 KB

CONTRIBUTING.md

File metadata and controls

162 lines (109 loc) · 8.39 KB

Hacktoberfest

  • We hereby welcome coders who wish to contribute to Open Source and participate in Hacktober Fest 2020.

    We are looking for Quality and not Quantity

       BBBBBBBBBBBBBBBBB   IIIIIIIIIINNNNNNNN        NNNNNNNN               AAA               RRRRRRRRRRRRRRRRR   YYYYYYY       YYYYYYY
       B::::::::::::::::B  I::::::::IN:::::::N       N::::::N              A:::A              R::::::::::::::::R  Y:::::Y       Y:::::Y
       B::::::BBBBBB:::::B I::::::::IN::::::::N      N::::::N             A:::::A             R::::::RRRRRR:::::R Y:::::Y       Y:::::Y
       BB:::::B     B:::::BII::::::IIN:::::::::N     N::::::N            A:::::::A            RR:::::R     R:::::RY::::::Y     Y::::::Y
         B::::B     B:::::B  I::::I  N::::::::::N    N::::::N           A:::::::::A             R::::R     R:::::RYYY:::::Y   Y:::::YYY
         B::::B     B:::::B  I::::I  N:::::::::::N   N::::::N          A:::::A:::::A            R::::R     R:::::R   Y:::::Y Y:::::Y
         B::::BBBBBB:::::B   I::::I  N:::::::N::::N  N::::::N         A:::::A A:::::A           R::::RRRRRR:::::R     Y:::::Y:::::Y 
         B:::::::::::::BB    I::::I  N::::::N N::::N N::::::N        A:::::A   A:::::A          R:::::::::::::RR       Y:::::::::Y
         B::::BBBBBB:::::B   I::::I  N::::::N  N::::N:::::::N       A:::::A     A:::::A         R::::RRRRRR:::::R       Y:::::::Y 
         B::::B     B:::::B  I::::I  N::::::N   N:::::::::::N      A:::::AAAAAAAAA:::::A        R::::R     R:::::R       Y:::::Y
         B::::B     B:::::B  I::::I  N::::::N    N::::::::::N     A:::::::::::::::::::::A       R::::R     R:::::R       Y:::::Y
         B::::B     B:::::B  I::::I  N::::::N     N:::::::::N    A:::::AAAAAAAAAAAAA:::::A      R::::R     R:::::R       Y:::::Y 
       BB:::::BBBBBB::::::BII::::::IIN::::::N      N::::::::N   A:::::A             A:::::A   RR:::::R     R:::::R       Y:::::Y
       B:::::::::::::::::B I::::::::IN::::::N       N:::::::N  A:::::A               A:::::A  R::::::R     R:::::R    YYYY:::::YYYY 
       B::::::::::::::::B  I::::::::IN::::::N        N::::::N A:::::A                 A:::::A R::::::R     R:::::R    Y:::::::::::Y
       BBBBBBBBBBBBBBBBB   IIIIIIIIIINNNNNNNN         NNNNNNNAAAAAAA                   AAAAAAARRRRRRRR     RRRRRRR    YYYYYYYYYYYYY
    
              TTTTTTTTTTTTTTTTTTTTTTTRRRRRRRRRRRRRRRRR   EEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEE
              T:::::::::::::::::::::TR::::::::::::::::R  E::::::::::::::::::::E E::::::::::::::::::::E
              T:::::::::::::::::::::TR::::::RRRRRR:::::R E::::::::::::::::::::E E::::::::::::::::::::E
              T:::::TT:::::::TT:::::TRR:::::R     R:::::REE::::::EEEEEEEEE::::E EE::::::EEEEEEEEE::::E
              TTTTTT  T:::::T  TTTTTT  R::::R     R:::::R  E:::::E       EEEEEE   E:::::E       EEEEEE
                      T:::::T          R::::R     R:::::R  E:::::E                E:::::E             
                      T:::::T          R::::RRRRRR:::::R   E::::::EEEEEEEEEE      E::::::EEEEEEEEEE   
                      T:::::T          R:::::::::::::RR    E:::::::::::::::E      E:::::::::::::::E   
                      T:::::T          R::::RRRRRR:::::R   E:::::::::::::::E      E:::::::::::::::E   
                      T:::::T          R::::R     R:::::R  E::::::EEEEEEEEEE      E::::::EEEEEEEEEE   
                      T:::::T          R::::R     R:::::R  E:::::E                E:::::E             
                      T:::::T          R::::R     R:::::R  E:::::E       EEEEEE   E:::::E       EEEEEE
                    TT:::::::TT      RR:::::R     R:::::REE::::::EEEEEEEE:::::E EE::::::EEEEEEEE:::::E
                    T:::::::::T      R::::::R     R:::::RE::::::::::::::::::::E E::::::::::::::::::::E
                    T:::::::::T      R::::::R     R:::::RE::::::::::::::::::::E E::::::::::::::::::::E
                    TTTTTTTTTTT      RRRRRRRR     RRRRRRREEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEE
    
  • About the Repository

    This repository aims at providing solutions to the famous questions on Binary Trees in as many languages as possible.
    You can get good questions on Binary Trees from sites like
    1. GeekForGeeks
    2. InterviewBit
    3. LeetCode
    4. HackerEarth
    5. HackerRank

  • Guidelines for Contribution

    1. Fork the Repository
    2. Add, edit or enhance code in whichever Language you want
    3. If a language folder isn't present in the repository, feel free to add it.
    4. All codes must be Binary Tree centric. As the name of the repository suggests, this repository is made especially for Binary Trees.
    5. No duplication, repitition and spamming. It will not lead to an accepted Pull Request.
    6. Once you are done with your contribution, issue a PULL REQUEST. The Maintainers may ask you for a few changes. Once everything seems good, your code will be pulled and added to the original Repository branch.
  • No Duplication

    If a language folder, say C++, already has a code for a problem statement X, then no code will be accepted for the same problem statement X (in that language), until and unless you solve it with a different approach (in which case you need to explicity mention in the filename eg. Inorder_Using_Iteration.cpp )

First Contributions (Beginner)

fork this repository

If you don't have git on your machine, install it.

Fork this repository

Fork this repository by clicking on the fork button on the top of this page. This will create a copy of this repository in your account.

Clone the repository

clone this repository

Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the clone button and then click the copy to clipboard icon.

Open a terminal and run the following git command:

git clone "url you just copied"

where "url you just copied" (without the quote marks) is the url to this repository (your fork of this project). See the previous steps to obtain the url.

copy URL to clipboard

For example:

git clone https://github.com/this-is-you/Binary-Trees.git

where this-is-you is your GitHub username. Here you're copying the contents of the first-contributions repository on GitHub to your computer.

Create a branch

Change to the repository directory on your computer (if you are not already there):

cd First-of-all

Make necessary changes and commit those changes

Now do some changes and save the file

git status

If you go to the project directory and execute the command git status, you'll see there are changes.

Add those changes to the branch you just created using the git add command:

git add <modified folders or file>

Now commit those changes using the git commit command:

git commit -m "commit your changes"

Push changes to GitHub

Push your changes using the command git push:

git push origin <add-your-branch-name>

Submit your changes for review

If you go to your repository on GitHub, you'll see a Compare & pull request button. Click on that button.

create a pull request

Now submit the pull request.

submit pull request

Congratulations, You have successfully submitted your first contribution.

We will be analysing your details, Once your pull request is accepted, you will be receiving a mail.

Stay Safe....