Skip to content

Commit 9d75cc9

Browse files
committed
update
1 parent 0c49880 commit 9d75cc9

File tree

387 files changed

+60424
-60424
lines changed

Some content is hidden

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

387 files changed

+60424
-60424
lines changed

.gitattributes

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

CODE_OF_CONDUCT.md

100644100755
+76-76
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
# Contributor Covenant Code of Conduct
2-
3-
## Our Pledge
4-
5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
11-
12-
## Our Standards
13-
14-
Examples of behavior that contributes to creating a positive environment
15-
include:
16-
17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
22-
23-
Examples of unacceptable behavior by participants include:
24-
25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
33-
34-
## Our Responsibilities
35-
36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
39-
40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
45-
46-
## Scope
47-
48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
54-
55-
## Enforcement
56-
57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
63-
64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
67-
68-
## Attribution
69-
70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72-
73-
[homepage]: https://www.contributor-covenant.org
74-
75-
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

Contributing.md

100644100755
+25-25
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# Contributing
2-
3-
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.
4-
5-
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,
6-
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
7-
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
8-
and then when I feel something can be made better).
9-
10-
5 points: Share a project.
11-
20 points: Add a description.
12-
Every 20 points, add another project with a description.
13-
(the rest is for you to add in [this issue](https://github.com/nishantc1527/Algorithms/issues/3))
14-
15-
Okay, now, how many points do you get for contributing? When you pick something from [the issues](https://github.com/nishantc1527/Algorithms/issues), the issue
16-
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
17-
depending on the quality of your pull request. Even in the issues with concrete numbers, if you go above and beyond and do a fantastic job I might reward more.
18-
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
19-
another issue for that.
20-
21-
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.
22-
23-
Now that I have the game cleared up, I would recommend some easy issues. [Improving explanations](https://github.com/nishantc1527/Algorithms/issues/4) would probably
24-
be the best place to start, then adding privileges. However, you can always look into the [issues](https://github.com/nishantc1527/Algorithms/issues) page for more
25-
stuff.
1+
# Contributing
2+
3+
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.
4+
5+
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,
6+
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
7+
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
8+
and then when I feel something can be made better).
9+
10+
5 points: Share a project.
11+
20 points: Add a description.
12+
Every 20 points, add another project with a description.
13+
(the rest is for you to add in [this issue](https://github.com/nishantc1527/Algorithms/issues/3))
14+
15+
Okay, now, how many points do you get for contributing? When you pick something from [the issues](https://github.com/nishantc1527/Algorithms/issues), the issue
16+
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
17+
depending on the quality of your pull request. Even in the issues with concrete numbers, if you go above and beyond and do a fantastic job I might reward more.
18+
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
19+
another issue for that.
20+
21+
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.
22+
23+
Now that I have the game cleared up, I would recommend some easy issues. [Improving explanations](https://github.com/nishantc1527/Algorithms/issues/4) would probably
24+
be the best place to start, then adding privileges. However, you can always look into the [issues](https://github.com/nishantc1527/Algorithms/issues) page for more
25+
stuff.

LICENSE.md

100644100755
+21-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2020 nishantc1527
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2020 nishantc1527
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

100644100755
File mode changed.

build.gradle

100644100755
File mode changed.

cpp.md

100644100755
+60-60
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
# C++ Users
2-
3-
There is a MakeFile for every C++ section. All testing is done with Google Test. You don't need to download Google Test yourself.
4-
5-
# Running Files With CMake (Recommended)
6-
7-
Go to the directory with the `CMakeLists.txt` file. Then make the CMake output directory using this:
8-
9-
mkdir cmake-build-debug # you can call it whatever you want, but this name is git-ignored
10-
cd cmake-build-debug
11-
12-
Then run the CMake.
13-
14-
cmake ../
15-
cmake --build .
16-
17-
Then run the CMake project.
18-
19-
./Algorithms
20-
21-
# Running Files Without CMake
22-
23-
Note that without CMake, you can't run tests.
24-
25-
To compile a file, use this command:
26-
27-
g++ <path-to-file> -o out
28-
29-
You can replace ```out``` with whatever you want, and you can even delete the whole ```-o out``` part. If you choose to delete ```-o out```,
30-
then you have to do the next step differently.
31-
32-
Run the newly made exe file with this:
33-
34-
./out
35-
36-
If you replaced ```out``` with something else, replace it here to. If you didn't add the ```-o out``` part, replace it with this:
37-
38-
./a
39-
40-
# [Source Code](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp)
41-
42-
## [Data Structures](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures)
43-
44-
### [Trees](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees)
45-
46-
#### [Binary Search Trees](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/binarysearchtrees)
47-
48-
* [Binary Search Tree](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/binarysearchtrees/binarysearchtree)
49-
50-
#### [Trie](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/trie)
51-
52-
* [Trie](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/trie)
53-
54-
## [Sorting](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting)
55-
56-
* [Bubble Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/bubblesort)
57-
* [Heap Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/heapsort)
58-
* [Insertion Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/insertionsort)
59-
* [Merge Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/mergesort)
60-
* [Quick Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/quicksort)
1+
# C++ Users
2+
3+
There is a MakeFile for every C++ section. All testing is done with Google Test. You don't need to download Google Test yourself.
4+
5+
# Running Files With CMake (Recommended)
6+
7+
Go to the directory with the `CMakeLists.txt` file. Then make the CMake output directory using this:
8+
9+
mkdir cmake-build-debug # you can call it whatever you want, but this name is git-ignored
10+
cd cmake-build-debug
11+
12+
Then run the CMake.
13+
14+
cmake ../
15+
cmake --build .
16+
17+
Then run the CMake project.
18+
19+
./Algorithms
20+
21+
# Running Files Without CMake
22+
23+
Note that without CMake, you can't run tests.
24+
25+
To compile a file, use this command:
26+
27+
g++ <path-to-file> -o out
28+
29+
You can replace ```out``` with whatever you want, and you can even delete the whole ```-o out``` part. If you choose to delete ```-o out```,
30+
then you have to do the next step differently.
31+
32+
Run the newly made exe file with this:
33+
34+
./out
35+
36+
If you replaced ```out``` with something else, replace it here to. If you didn't add the ```-o out``` part, replace it with this:
37+
38+
./a
39+
40+
# [Source Code](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp)
41+
42+
## [Data Structures](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures)
43+
44+
### [Trees](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees)
45+
46+
#### [Binary Search Trees](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/binarysearchtrees)
47+
48+
* [Binary Search Tree](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/binarysearchtrees/binarysearchtree)
49+
50+
#### [Trie](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/trie)
51+
52+
* [Trie](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/datastructures/trees/trie)
53+
54+
## [Sorting](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting)
55+
56+
* [Bubble Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/bubblesort)
57+
* [Heap Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/heapsort)
58+
* [Insertion Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/insertionsort)
59+
* [Merge Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/mergesort)
60+
* [Quick Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/quicksort)
6161
* [Selection Sort](https://github.com/nishantc1527/Algorithms/tree/master/src/main/cpp/sorting/selectionsort)

0 commit comments

Comments
 (0)