Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lexnikitin/Algorithms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms are a way to solve problems. Not only that, it wants to solve problem fast. That's why there's tons and tons of theory on this stuff.

This project is a hope to share the whole knowledge of algorithms there is to offer. Obviously, one guy can't do that, which is why it's open source! I also developed a fun way to contribute. You can look at it in the contributing page.

Side Note

Many of these algorithm problems come from a interview preparing website called LeetCode. If you want, you can also check out my LeetCode solutions.

Compiling Algorithms

Go To The Folder Where You Want To Place The Repository

This part is optional. Use cd to go to the location you want to place the repository. In my case, I have a seperate location in my d drive. For example:

$ cd d:/github/myrepos

Cloning The Repository

$ git clone https://github.com/nishantc1527/Algorithms.git
$ cd Algorithms

The second command just goes to the repository folder.

Compiling A File

First use cd <the path the folder which contains the file>. For example:

$ cd src/Main/java/com/nishant/algorithms/Sorting/QuickSort/

Then compile the file like this:

$ javac <file name>
$ java <file name without extension>

Example:

$ javac QuickSort.java
$ java QuickSort

Everything Put Together

$ git clone https://github.com/nishantc1527/Algorithms.git
$ cd Algorithms
$ cd src/Main/java/com/nishant/algorithms/Sorting/QuickSort/
$ javac QuickSort.java
$ java QuickSort

Possible Error

Error: Could not find or load main class QuickSort

A couple of detailed posts about this:

Contributing

This repository is welcome to contributing. There are tons of stuff to add, some easy and some hard. If you want something to contribute, look at the issues page.
To encourage contributing, I developed a fun little game. Every time you contribute, you get points. I'll talk about what score you get and all the details, but first, what is the use of the score? The more score you get, you get to put your name higher on the leaderboard in the section below. And what is the point of the leaderboard? Right under your name, you get to advertise any repository, project, etc... you want. Here is a quick privilege list (I will update it now and then when I feel something can be made better).

5 points: Share a project. 20 points: Add a description. Every 20 points, add another project with a description. (the rest is for you to add in this issue)

Okay, now, how many points do you get for contributing? When you pick something from the issues, the issue will specify the number of points you get. Sometimes, it will be a concrete number, but sometimes, it will be a range (for example, 5 - 10) and you get rewarded depending on the quality of your pull request. Even in the issues with concrete numbers, if you go above and beyond and do a really good job I might reward more. If you leave out some stuff or leave bugs, I will ask if you want to except fewer points or fix it. If you decide to just except fewer points, then I will open another issue for that.

But what if you found something that wasn't in the issues? Then, submit the pull request anyways, and I will determine the points myself.

Now that I have the game cleared up, I would recommend some easy issues. Improving explanations would probably be the best place to start, then adding privileges. However, you can always look into the issues page for more stuff.

Leaderboard

No one here yet. Be the first to put your name!

This part contains all the implementations of the algorithms.

This part contains all the testing classes.

License

Licensed under MIT License. That means feel free to add whatever you want if you find it necessary.

About

Has lot's of algorithms in Java with a description for each Algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%