Skip to content

nishantc1527/Algorithms-Java

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Algorithms

A collection of common algorithms and data structures with source code in Java.

Gradle

This repository uses Gradle. While you don't need it, it will make everything much easier. You don't need to install Gradle as I added the wrapper. Testing is all done with JUnit 5.

Dependencies Used

  • JUnit 5
  • Apache Commons Lang
  • JBlas

Using Gradle

To check if everything is correct, run this command:

./gradlew check

This checks for lots of things, like running the tests, check for compile errors, check for correct google java style guide, etc. If you want to run a single file, then go to the build.gradle file and add this line at the bottom.

mainClassName = 'sorting.bubblesort.BubbleSort'

and run

./gradlew run

Replace sorting.bubblesort.BubbleSort with the file you want to run. Make sure you exclude the src.main.java part.

Source Code

Bit Manipulation

Problems

Data Structures

Min Priority Queues

Trees

Binary Search Trees

Trie

Dynamic Programming

Problems

Graph Theory

Traversals

Math

Neural Networks

Sorting

License

This repository is licensed under the MIT license.