Skip to content

Commit 2aa0c90

Browse files
committed
moved python and cpp to seperate repos
1 parent 45d3ff1 commit 2aa0c90

File tree

405 files changed

+99
-108932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+99
-108932
lines changed

README.md

+99-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,102 @@
1-
# [Algorithms](https://github.com/nishantc1527/Algorithms/tree/master/src)
1+
# Java Users
22

3-
A collection of common algorithms and data structures with source code in Java, C++, and Python.
3+
This repository supports Gradle. While you don't need it, it will make everything much easier. Testing is all done with JUnit 5. If you don't
4+
have Gradle, you have to download JUnit, as well as a couple dependencies listed below. If you do have Gradle, you're fine.
45

5-
If you want to view the Java source code, go to java.md. If you want to view the Python source code, go to python.md, and same for C++ except
6-
go to cpp.md.
6+
# Dependencies Used
77

8-
# License
9-
Licensed under [MIT License](https://opensource.org/licenses/MIT). That means feel free to add whatever you want if you find it necessary.
8+
* JUnit 5
9+
* Apache Commons Lang
10+
* JBlas
11+
12+
# Using Gradle
13+
14+
If you have gradle, to run everything it simply uses this command:
15+
16+
./gradlew build
17+
18+
This checks for lots of things, like running the tests, check for compile errors, check for correct google java style guide, etc. If you only
19+
want to run a single file, then go to the build.gradle file and add this line at the bottom.
20+
21+
mainClassName = 'sorting.bubblesort.BubbleSort'
22+
23+
and run ```./gradlew run```. Replace ```sorting.bubblesort.BubbleSort``` with the file you want to run. Make sure you exclude the ```src.main.java``` part. If you want to
24+
run the tests, simply run this command:
25+
26+
./gradlew test
27+
28+
# Using Only Java JDK (Not Recommended)
29+
30+
Compile a file like this:
31+
32+
javac <path-to-file>
33+
34+
Then run it like this:
35+
36+
java <class-name>
37+
38+
# [Source Code](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java)
39+
40+
## [Bit Manipulation](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/bitmanipulation)
41+
42+
* [Basic Operators](https://github.com/nishantc1527/Algorithms/blob/master/src/main/java/bitmanipulation/BasicOperators.java)
43+
44+
### [Problems](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/bitmanipulation/problems)
45+
46+
* [Missing Number](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/bitmanipulation/problems/missingnumber)
47+
* [Power Of Two](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/bitmanipulation/problems/poweroftwo)
48+
* [Single Number](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/bitmanipulation/problems/singlenumber)
49+
50+
## [Data Structures](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures)
51+
52+
### [Min Priority Queues](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/minpriorityqueue)
53+
54+
* [Fibonacci Heap](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/minpriorityqueue/FibonacciHeap)
55+
* [Min Heap](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/minpriorityqueue/MinHeap)
56+
57+
### [Trees](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees)
58+
59+
#### [Binary Search Trees](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees/binarysearchtrees)
60+
61+
* [Avl Tree](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees/binarysearchtrees/avltree)
62+
* [Binary Search Tree](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees/binarysearchtrees/binarysearchtree)
63+
* [Red Black Tree](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees/binarysearchtrees/redblacktree)
64+
65+
#### [Trie](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees/trie)
66+
67+
* [Trie](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/datastructures/trees/trie)
68+
69+
## [Dynamic Programming](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/dynmanicprogramming)
70+
71+
### [Problems](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/dynmanicprogramming/problems)
72+
73+
* [House Robber](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/dynmanicprogramming/problems/houserobber)
74+
* [Unique Paths](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/dynmanicprogramming/problems/uniquepaths)
75+
76+
## [Graph Theory](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/graphtheory)
77+
78+
### [Traversals](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/graphtheory/traversals)
79+
80+
* [Breadth First Search](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/graphtheory/traversals/breadthfirstsearch)
81+
* [Depth First Search](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/graphtheory/traversals/depthfirstsearch)
82+
83+
## [Math](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/math)
84+
85+
* [Matrices](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/math/matrices)
86+
* [Vectors](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/math/vectors)
87+
88+
## [Neural Networks](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/neuralnetworks)
89+
90+
* [Multilayered Neural Network](https://github.com/nishantc1527/Algorithms/blob/master/src/main/java/neuralnetworks/MultilayeredNeuralNetwork.java)
91+
* [One Hidden Layer Neural Network](https://github.com/nishantc1527/Algorithms/blob/master/src/main/java/neuralnetworks/OneHiddenLayerNeuralNetwork.java)
92+
93+
## [Sorting](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting)
94+
95+
* [Bogo Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/bogosort)
96+
* [Bubble Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/bubblesort)
97+
* [Counting Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/countingsort)
98+
* [Heap Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/heapsort)
99+
* [Insertion Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/insertionsort)
100+
* [Merge Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/mergesort)
101+
* [Quick Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/quicksort)
102+
* [Selection Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/java/sorting/selectionsort)
File renamed without changes.

cpp/README.md

-61
This file was deleted.

cpp/main/bitmanipulation/long_primitive.h

-35
This file was deleted.

cpp/main/datastructures/heap/max_heap.h

-116
This file was deleted.

0 commit comments

Comments
 (0)