Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
492 commits
Select commit Hold shift + click to select a range
f374a74
simplefied the calculation of the mid.
Apr 6, 2018
c94cc46
Merge pull request #193 from christianbender/improved_calculation
goswami-rahul Apr 6, 2018
35e7489
Add stutter.py to stack
Apr 6, 2018
eaa9537
Add switch_pairs.py to stack
Apr 6, 2018
0a74331
Add is_consecutive.py to stack
Apr 6, 2018
c28dc4b
Add remove_min.py to stack
Apr 6, 2018
de2ee0f
Add is_sorted to stack
Apr 7, 2018
00f7d67
Merge pull request #189 from danghai/algo_stack
goswami-rahul Apr 7, 2018
d687212
Added a test suite and change the division operator from / to //.
Apr 7, 2018
2e15a6b
added a class-framework and a toString() method. At the end of the fi…
Apr 7, 2018
94c1d28
renamed the methods
Apr 7, 2018
eb2cdac
added a simple tes case , main() method
Apr 7, 2018
4b0747f
Merge pull request #195 from christianbender/added_tests_all_factors
goswami-rahul Apr 7, 2018
3ac45f0
added test suite (unittest)
Apr 7, 2018
5d14ddf
changed style
Apr 7, 2018
524e2a6
Add unittest to sort
Apr 8, 2018
66bd429
Implement binary heap
Apr 8, 2018
6b5daa4
Merge pull request #197 from danghai/algo_heap
goswami-rahul Apr 8, 2018
064c0ba
changed xrange to range
Apr 8, 2018
0af92da
fixed merge_sort.py
Apr 8, 2018
6deede6
fixed insertion_sort.py.
Apr 8, 2018
298f5b3
fixed selection_sort.py
Apr 8, 2018
f8a14e6
Merge pull request #200 from christianbender/fixed_merge_sort.py
Apr 8, 2018
4c365ef
Merge pull request #201 from christianbender/fixed_insertion_sort.py
Apr 8, 2018
5e53c16
Merge pull request #202 from christianbender/fixed_selection_sort.py
Apr 8, 2018
03fa590
Create merge_string_checker.py
SaadBenn Apr 8, 2018
7d72c6d
Update README.md
SaadBenn Apr 8, 2018
d8184b5
Merge pull request #196 from christianbender/changed_sudoku_solver
goswami-rahul Apr 8, 2018
44a2ffd
Merge branch 'master' into algo_unittest
goswami-rahul Apr 8, 2018
2b395f1
Create merge_string_checker.py
SaadBenn Apr 8, 2018
55d8773
Minor fixes.
SaadBenn Apr 8, 2018
cd2be89
Update merge_string_checker.py
SaadBenn Apr 8, 2018
204e422
Update merge_string_checker.py
SaadBenn Apr 8, 2018
f2ca575
Merge branch 'New_Algorithms' of https://github.com/SaadBenn/algorith…
SaadBenn Apr 9, 2018
bdbc900
Merge pull request #199 from danghai/algo_unittest
goswami-rahul Apr 9, 2018
106ba85
Merge pull request #203 from SaadBenn/New_Algorithms
goswami-rahul Apr 9, 2018
19c6f78
Implement bst tree
Apr 9, 2018
1a9f0c2
Merge pull request #204 from danghai/algo_bst
goswami-rahul Apr 9, 2018
b7343c9
Update first_occurance.py
tratneshsingh Apr 9, 2018
a0037cd
Update bst.py
tratneshsingh Apr 9, 2018
c8e0a50
Update first_occurance.py
tratneshsingh Apr 9, 2018
76f5bb0
Update first_occurance.py
tratneshsingh Apr 9, 2018
9d1bd89
Update first_occurance.py
tratneshsingh Apr 9, 2018
ecffa5c
Merge pull request #207 from tratneshsingh/patch-3
goswami-rahul Apr 9, 2018
6ea1199
Add depth_sum to bst
Apr 9, 2018
d17793d
Add count_left_node.py to bst
Apr 9, 2018
3105528
Fix typo example in bst
Apr 9, 2018
3bb7a7a
Add num_empty.py to bst
Apr 9, 2018
44dffaa
Add height.py to bst
Apr 9, 2018
445ab29
Update first_occurance.py
tratneshsingh Apr 10, 2018
03387fa
Merge pull request #208 from danghai/algo_bst
goswami-rahul Apr 10, 2018
a2d9bbc
typo in josephus
goswami-rahul Apr 10, 2018
b2bb03b
moving tests and PEPE 8 fixes in flatten.py
goswami-rahul Apr 10, 2018
4586252
created test_array.py for all unittests in array/ module
goswami-rahul Apr 10, 2018
8b295e7
add .travis.yml for Travis CI config
goswami-rahul Apr 10, 2018
a138d93
update README for pytest (now we can run tests by command pytest)
goswami-rahul Apr 10, 2018
92b3612
some refactor
goswami-rahul Apr 10, 2018
18cde0c
add requirements.txt
goswami-rahul Apr 10, 2018
8cc1740
add .cache to .gitignore
goswami-rahul Apr 11, 2018
cc1e41a
Merge pull request #168 from cclauss/patch-1
keon Apr 11, 2018
91ad51e
Merge branch 'master' into move-tests
keon Apr 11, 2018
2b79795
Merge pull request #211 from goswami-rahul/move-tests
keon Apr 11, 2018
d47fe90
Update Maintainers List
keon Apr 11, 2018
8b40ed4
Delete lastfailed
keon Apr 11, 2018
a3ef4b3
Merge pull request #212 from keon/keon-patch-3
keon Apr 11, 2018
3bec61f
fixing errors and some refactoring
goswami-rahul Apr 11, 2018
fddd3ba
fixed all errors :)
goswami-rahul Apr 11, 2018
1db9359
Merge pull request #216 from goswami-rahul/fix-flake8-errors
keon Apr 12, 2018
85ea0b9
Add domain_extractor.py
SaadBenn Apr 12, 2018
62a13f2
Update README.md
SaadBenn Apr 12, 2018
04703e4
Add sudoku_validator.py
SaadBenn Apr 12, 2018
852a151
Update README.md
SaadBenn Apr 12, 2018
f69879a
Merge pull request #206 from tratneshsingh/master
Apr 12, 2018
3cf2cf8
Fix missing close parentheses
Apr 13, 2018
41b58a3
Merge pull request #224 from danghai/algo_typo
SaadBenn Apr 13, 2018
2f0aad7
Add status badges of built to README
Apr 13, 2018
541a3fb
Test maths (#220)
Apr 13, 2018
f81bb05
Separate test case for sort (#222)
Apr 13, 2018
ba45a71
update information in CONTRIBUTING.md
Apr 13, 2018
73ab539
added seed in maths/rsa.py and pep8 fixes in test_maths.py
goswami-rahul Apr 13, 2018
d05237b
Update rabin_miller.py
goswami-rahul Apr 13, 2018
8a51db2
Separate test for bit (#230)
Apr 14, 2018
063b3f4
Refactor Tarjan (#231)
murilocamargos Apr 14, 2018
533d9be
rewrote math.rsa test and commented it out
Apr 14, 2018
0d3b951
Add strings/strip_url_params file. (#232)
SaadBenn Apr 15, 2018
c9f65b3
Merge branch 'master' into master
goswami-rahul Apr 15, 2018
50f45d9
Merge pull request #227 from goswami-rahul/master
Apr 16, 2018
bd62587
Add name's collaborators to CONTRIBUTING.md
Apr 17, 2018
84966bd
Separate test for linkedlist
Apr 17, 2018
0cb514e
Add merge_two_list to linkedlist
Apr 17, 2018
1d43123
Add separate test for is_palindrome
Apr 17, 2018
2e35011
Add algorithm that tests knowledge of strings (#234)
SaadBenn Apr 17, 2018
3531d9c
Separate test for search, and add some problem (#233)
Apr 17, 2018
f2e6b4e
Merge pull request #235 from danghai/algo_linkedlist
Apr 17, 2018
7f4e4af
Add SeparateChainingHashTable implementation (#236)
mecforlove Apr 20, 2018
f71d1d2
Add is_palindrome variations (#238)
SaadBenn Apr 21, 2018
6731c21
Move all test into a separate test folder (#239)
Apr 21, 2018
3140b77
Avl tree implementation
Apr 21, 2018
df0cb82
Add a function that sanitizes the string in is_palindrome.py
SaadBenn Apr 22, 2018
99c9d21
fix the error in is_palindrome (#249)
goswami-rahul Apr 22, 2018
83023ff
move tests for maths -> tests/test_maths.py (#248)
Apr 22, 2018
efb2c22
naming convention fixes in many files (#250)
goswami-rahul Apr 22, 2018
d0feda1
Fix test
Apr 22, 2018
88dd56a
Merge pull request #251 from danghai/test
Apr 23, 2018
69887e4
Add heap and stack to test (#245)
Apr 23, 2018
91b0e29
Add init file to graph module
Apr 23, 2018
9d785db
Move graph tests to correct folder
Apr 23, 2018
91ff530
Add comparison magic methods for Node objects
Apr 23, 2018
0fb34b7
Sort each SCC for standardization
Apr 23, 2018
80a59c2
Merge pull request #252 from murilocamargos/fix-tarjan-tests
Apr 23, 2018
dc967b5
Tests for the module strings (#255)
Apr 24, 2018
9283343
Add some bit manipulation (#253)
Apr 25, 2018
5406bda
Merge pull request #244 from muneeb20/add_avl_tree_implementation
Apr 27, 2018
8089750
Add fizzbuzz.py in strings folder
SaadBenn Apr 27, 2018
6345650
Add fizzbuzz.py to README.md
SaadBenn Apr 27, 2018
463e9fb
add single_number3: find two elements that appear only once (#260)
keon Apr 28, 2018
9c1d282
Add coverall to algorithms (#261)
Apr 28, 2018
b431561
added fibonacci
Apr 29, 2018
c36a410
added print
Apr 29, 2018
db0a10f
Update quick_sort.py
zhengli0817 Apr 29, 2018
a2713c7
Merge pull request #266 from zhengli0817/zhengli0817-patch-1
Apr 29, 2018
0dd1f72
Delete temporary.md (#267)
keon Apr 29, 2018
1768997
Add test_queue to tests (#262)
Apr 29, 2018
48c1768
typo fix (#269)
Apr 30, 2018
d82eb49
Python packaging locally (#268)
May 1, 2018
fbace84
Add priority queue implementation using lists
SaadBenn May 2, 2018
5898ae0
Fix minor typo in README
May 3, 2018
d890b34
add Dijkstra's and OrderedStack (#270)
agranya99 May 3, 2018
4741df4
Update priority_queue.py (#273)
goswami-rahul May 3, 2018
e2e9fac
update readme for chinese students (#276)
yunshuipiao May 4, 2018
31c9781
added a iterative version
May 4, 2018
390805e
changed the README.md
May 4, 2018
31be897
added a precondition with assert
May 4, 2018
499ce40
Merge pull request #265 from christianbender/added_fibonacci
May 9, 2018
ad22f7e
added a german redame and changed the main-readme
May 11, 2018
f981df7
Merge pull request #279 from christianbender/added_german_README_md
May 11, 2018
d60b459
changed something
May 11, 2018
e8e4165
Merge pull request #280 from christianbender/changed_german_readme
May 11, 2018
3fe1ae2
Add is_rotated.py (#281)
victore07 May 17, 2018
e84c344
Updated summing_digits to not override a built-in python function (#283)
mGalarnyk May 17, 2018
05e38dc
Update bst.py (#284)
zhengli0817 May 23, 2018
194500a
update quicksort (#285)
techkang May 24, 2018
a2f5598
reorganize arrays
keon May 25, 2018
dd6567a
reorganize linkedlist
May 29, 2018
c9efa52
reorganize backtrack
May 29, 2018
567c619
reorganize bfs
May 29, 2018
1a25a84
reorganize dfs
May 29, 2018
3c4325a
reorganize dp
May 29, 2018
f84a0d4
reorganize graph
May 29, 2018
7760d36
reorganize heap
May 29, 2018
feceb6c
reorganize map
May 29, 2018
f9bb8a0
reorganize maths
May 29, 2018
c611fda
reorganize matrix
May 29, 2018
000d6b3
reorganize queue
May 29, 2018
d71bfe1
reorganize search
May 29, 2018
c343b7a
reorganize set
May 29, 2018
5224102
reorganize sort
May 29, 2018
0f0ff08
reorganize stack
May 29, 2018
8fdc37b
reorganize strings
May 29, 2018
a8545b3
reorganize bit
May 29, 2018
844a504
reorganize tree
May 29, 2018
e584a1d
reorganize other files
May 29, 2018
4e1ecd1
README.md: Update python packaging following reorganize
May 29, 2018
343e398
Created README and CONTRIBUTING files in Japanese (#289)
geon0325 May 30, 2018
ba01f41
Merge pull request #288 from danghai/reorg
keon May 31, 2018
a15d058
README.md: Update the link after reorganization
Jun 1, 2018
59138dc
README_CN.md: Update the link after reorganization
Jun 1, 2018
711f978
README_GE.md: Update the link after reorganization
Jun 1, 2018
ae1a9be
Merge pull request #291 from danghai/reorg
keon Jun 1, 2018
91aee95
Merge pull request #286 from keon/reorg
keon Jun 1, 2018
b39f4e5
added bucket_sort.py & shell_sort.py (#296)
geon0325 Jun 1, 2018
b905623
add some bit problems (#294)
goswami-rahul Jun 2, 2018
942c027
Update README for bucket and shell sort (#298)
geon0325 Jun 2, 2018
cfc4132
FIX README.md to correct link for the Arrays / Josephus Problem (#299)
getconor Jun 2, 2018
23b35ff
Corrected link to Arrays/Josephus Problems (#300)
geon0325 Jun 3, 2018
887a5bd
Create README_KR.md file that is korean translation of README.md (#297)
hsi1032 Jun 3, 2018
e414353
Added link to Korean README file in other README files (#302)
9967han Jun 3, 2018
bb9d6c1
Created combination.py in maths (#304)
geon0325 Jun 4, 2018
4a3cbb7
Created radix_sort.py in algorithms/sort (#303)
aig031 Jun 4, 2018
97e5e85
Zhengli0817 patch 1 - update topsort.py (#295)
zhengli0817 Jun 5, 2018
8f68ac8
Created CONTRIBUTING_KR.md in Korean (#290)
aig031 Jun 5, 2018
dec867e
Create linear_search.py in algorithms/search (#305)
jiwoogit Jun 5, 2018
0a86bfd
Created jump_seach in algorithms/seach (#301)
hsi1032 Jun 5, 2018
f88e499
Added link to linear search in all README files (#307)
jiwoogit Jun 5, 2018
59db106
Created factorial.py in algorithms/maths (#309)
jiwoogit Jun 5, 2018
3e14809
Created bogo_sort.py in algorithms/sort (#308)
9967han Jun 5, 2018
1220a74
Fixed links in README files (#312)
geon0325 Jun 6, 2018
4c93de3
Add documentation template (#314)
keon Jun 6, 2018
43ccd21
Added link to OS Helpers, Build Status, and Coverage Status in README…
jiwoogit Jun 6, 2018
6b662a1
Created PULL_REQUEST_TEMPLATE.md (#311)
goswami-rahul Jun 6, 2018
d0464cc
Create cocktail_shaker_sort and add test case (#310)
hsi1032 Jun 6, 2018
537e4fb
add to python package index (#320)
keon Jun 6, 2018
36c1af4
Created gnome sort in sort algorithm (#313)
geon0325 Jun 6, 2018
f6aa8d6
clean up backtrack and move tests to test_backtest (#306)
keon Jun 6, 2018
de286fd
add type of desc. as markdown (#324)
goswami-rahul Jun 6, 2018
69d4b7d
Create bitonic_sort.py in /algorithms/sort/ and update test_sort, __i…
hsi1032 Jun 7, 2018
41dbd32
Added simulation in bubble sort (#327)
geon0325 Jun 7, 2018
a93acad
logo update in all READMEs (#329)
goswami-rahul Jun 7, 2018
e5b9fac
WIP: Fix some issues in Travis and add more python env (#323)
Jun 7, 2018
6636026
Update tree.md (#332)
goswami-rahul Jun 7, 2018
ffe1c21
add PyPI badge to READMEs (#334)
goswami-rahul Jun 7, 2018
f9f8746
Created pancake_sort.py in algorithms/sorts (#336)
9967han Jun 7, 2018
409ae68
Created cycle_sort.py in algorithms/sort (#338)
9967han Jun 8, 2018
5e08ff9
Added simulation features in insertion & selection sorts (#333)
geon0325 Jun 8, 2018
65f9a6d
refactored variable names (#340)
herinckc Jun 8, 2018
d1b0999
Update README_JP.md (#341)
geon0325 Jun 9, 2018
32b20e2
Add decimal_to_binary_ip.py (#339)
victore07 Jun 9, 2018
601202b
Created BFS maze_search.py and test case (#343)
geon0325 Jun 10, 2018
5982b36
top_1.py & trimmean.py created (#345)
aig031 Jun 10, 2018
3d1956d
Created check_bipartite.py in algorithms/graph + test cases (#347)
geon0325 Jun 10, 2018
1ac287f
refactor PriorityQueue and tests (#348)
goswami-rahul Jun 10, 2018
d4ec1ed
added some path problems in new algorithms/unix/ (#344)
Jun 10, 2018
7a21ac5
Created Preorder & Postorder traversals in tree (#346)
geon0325 Jun 10, 2018
89c1daa
added simulation code in quick_sort and heap_sort (#342)
hsi1032 Jun 10, 2018
5fd35ca
remove `tests/*` from MANIFEST.in (#354)
goswami-rahul Jun 12, 2018
2f361dd
created limit.py in /algorithms/arrays (#353)
aig031 Jun 13, 2018
27d53fb
added radix sort for simulation (#351)
NormalB Jun 13, 2018
18b9ce1
added simulation to bogo_sort.py (#355)
jiwoogit Jun 14, 2018
7cbe6e1
Added some String algorithm (#356)
Jun 16, 2018
37bee74
added combination_memo.py using memoization (#358)
arsgsg1 Jun 18, 2018
5493bcd
Add some String solution (#359)
Jun 18, 2018
6ad74b6
Correction in README files (#360)
edilsonalves Jun 20, 2018
447e02d
added exponential and some refactors to maths/ (#361)
goswami-rahul Jun 21, 2018
7520795
Added some solution (#362)
Jun 27, 2018
81e7853
#256 change strip_url_params3 to use OrderedDict to prevent failing t…
programatt Jun 28, 2018
a289b6b
Revert "#256 change strip_url_params3 to use OrderedDict to prevent f…
Jun 28, 2018
c9cfdef
Implemented n sum (#365)
Jun 29, 2018
2d3faff
Created README file in Brazilian Portuguese (#370)
edilsonalves Jun 30, 2018
78fc4a0
Corrected language title (#372)
edilsonalves Jul 9, 2018
77e8af7
added text_justification with tests (#371)
LJXLJXLJX Jul 10, 2018
77054e7
PR to add some problem. (#375)
Jul 18, 2018
7391883
Logo Designs (#376)
jbeguna04 Jul 18, 2018
966cece
Remove undesirable output on runnint tests
danghai Jul 18, 2018
b47e9d6
Update logo for all README
danghai Jul 19, 2018
dd52a82
added nearest neighbor algorithm
Jul 24, 2018
343600f
changed the readme
Jul 24, 2018
d38649e
changed variable names
Jul 24, 2018
b9bf25f
renamed the directory
Jul 24, 2018
19c2596
added a test. removed test cases. renamed directory
Jul 24, 2018
4abf64c
added test for distance(...)
Jul 24, 2018
a978773
added empty lines
Jul 24, 2018
065898e
removed math. added numpy.inf
Jul 25, 2018
913329f
update logo path (#382)
keon Jul 27, 2018
5fd9d6d
fix typo (#385)
fanofxiaofeng Jul 28, 2018
b7d5db1
Add test for map (#386)
Jul 29, 2018
d5ded33
removed numpy
Jul 29, 2018
0840418
Replace min.inf by float(inf)
danghai Aug 2, 2018
010dce3
Merge pull request #379 from christianbender/add_machine_learning
Aug 2, 2018
48072b4
PR to add some problem (#378)
Aug 2, 2018
3879607
generate_parenthesis (#384)
Aug 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[report]
omit =
*/python?.?/*
*/site-packages/nose/*
*__init__*
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
__pycache__/
*.py[cod]
*.iml
*.xml
.idea/
.cache/
.pytest_cache/
.coverage
# Setuptools distribution folder.
/dist/
# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
/*.egg
# docs
build/
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
group: travis_latest
language: python
cache:
directories:
- $HOME/.cache/pip
matrix:
include:
- python: 3.4
env: TOX_ENV=py34
- python: 3.5
env: TOX_ENV=py35,coverage
- python: 3.6
env: TOX_ENV=py36
install:
- pip install -r test_requirements.txt
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
# Check python install package
- pip3 install -e .
- tox -e $TOX_ENV
# Check python uninstall package
- pip3 uninstall -y algorithms
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
64 changes: 64 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Contributing

We love pull requests from everyone. By contributing to this repository, you
agree to abide by the [Code of Conduct](CODE_OF_CONDUCT.md).

## Get Started

* First [fork][fork] the repository and then clone it using:

git clone git@github.com:your-username/algorithms.git

* After that create a branch for your changes. For example:
* add_XXX if you will add new algorithms or data structures.
* fix_XXX if you will fixe a bug on a certain algorithm or data structure.
* test_XXX if you wrote a test/s.

You may contribute by:
- implementing new algorithms in the repo. Be sure to keep it under
right section (e.g. [array](array), [dp](dp), etc). Make a new section for it if
it doesn't fall under any section. Make sure that your implementation works.
- optimizing or improving the existing algorithms.
- adding a different solution for the problem.
- finding and fixing bugs.
- adding examples to explain the algorithms better.
- adding test cases.

## Pull Requests
Push to your fork and [submit a pull request][pr].

We will review and may suggest some changes or improvements or alternatives.
Some things that will increase the chance that your pull request is accepted:

* All algorithms should be written in **Python 3**.
(There are a few algorithms still in _Python 2_ syntax. You can start by converting
[those][issue120] to _Python 3_.)
* Write clean and understandable code.
* Properly comment the code and briefly explain what the algorithm is doing in the [docstrings][docstr].
* You may also explain the output using a minimal example.
* Try to also include a couple of test cases for the algorithm.
* Write a [good commit message][commit].


## Issues
Submit a [new issue][newissue] if there is an algorithm to add, or if a bug was found in an existing algorithm. Before submitting a new issue please review the [existing issues][issues] to avoid creating duplicates. Also, consider resolving current issues or contributing to the discussion on an issue.

## Collaborators
You can ask for any help or clarifications from the collaborators.
[Keon Kim](https://github.com/keon)

[Rahul Goswami](https://github.com/goswami-rahul)

[Ankit Agarwal](https://github.com/ankit167)

[Hai Hoang Dang](https://github.com/danghai)

[Saad](https://github.com/SaadBenn)

[fork]: https://help.github.com/articles/fork-a-repo/
[docstr]: https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[pr]: https://github.com/keon/algorithms/compare/
[newissue]: https://github.com/keon/algorithms/issues/new
[issue120]: https://github.com/keon/algorithms/issues/120
[issues]: https://github.com/keon/algorithms/issues/
61 changes: 61 additions & 0 deletions CONTRIBUTING_JP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 貢献

私たちは、誰からもプルリクエストを歓迎します。このレポジトリに貢献をするためには[Code of Conduct](CODE_OF_CONDUCT.md)を従うことを同意しなければなりません。

## 始める

* まずリポジトリを[フォーク][fork]し,次を使用してクローンします.

git clone git@github.com:your-username/algorithms.git

* その後,変更のためのブランチを作成します. 例えば:
* add_XXX : 新しいアルゴリズムやデータ構造を追加する場合
* fix_XXX : 特定のアルゴリズムやデータ構造のbugを修正する場合
* test_XXX : テストを作成する場合

以下の方法で貢献できます:
- レポジトリの新しいアルゴリズムを開発すること。 正しいセクションに保存してください(例: [array](array), [dp](dp), 等)。 どのセクションにも該当しない場合は、新しいセクションを作成します。 また、コードが正常に作動するかどうか確認してください。
- 既存のアルゴリズムの最適化または改善。
- 問題の他のソリューションを追加。
- バグの検索と修正。
- アルゴリズムをよりよく説明するための例を追加。
- テストケースの追加。

## プルリクエスト
フォークにプッシュして[プルリクエストを送信します][pr]。

私たちは、検討した後、変更、改善、代替案を提案することもできます。
あなたのプルリクエストが受け入れられる可能性が高くなる方法:

* すべてのアルゴリズムは**Python 3**で開発されなければなりません。
(まだPython 2で作成されたアルゴリズムがいくつかあります。これらをPython 3に転換する作業でスタートすることもできます。)
* きれいで理解しやすいコードを作成する。
* コードに適切なコメントを残して[docstrings][docstr]にアルゴリズムが何をしているのか簡単に説明する。
* 小さな例を通じて出力を説明する。
* アルゴリズムのテストケースをいくつか含ませる。
* [good commit message][commit]を書く。


## イシュー
追加するアルゴリズムがあったり、既存のアルゴリズムにバグが発見された場合の[new issue][newissue]を提出してください。 新たなイシューを提出する前に重複を避けるために、[existing issues][issues]を確認してください。 また、現在のイシューを解決したり論議中のイシューに貢献することも考慮してください。

## コラボレータ
コラボレータには,どのようなヘルプや説明も求めることができます.

[Keon Kim](https://github.com/keon)

[Rahul Goswami](https://github.com/goswami-rahul)

[Ankit Agarwal](https://github.com/ankit167)

[Hai Hoang Dang](https://github.com/danghai)

[Saad](https://github.com/SaadBenn)

[fork]: https://help.github.com/articles/fork-a-repo/
[docstr]: https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[pr]: https://github.com/keon/algorithms/compare/
[newissue]: https://github.com/keon/algorithms/issues/new
[issue120]: https://github.com/keon/algorithms/issues/120
[issues]: https://github.com/keon/algorithms/issues/
66 changes: 66 additions & 0 deletions CONTRIBUTING_KR.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 기여 활동

모든 pull request는 환영입니다. 이 저장소에 기여 함으로써, 당신은 [code of conduct](CODE_OF_CONDUCT.md)
를 준수하는 것에 동의 한 것입니다.


## 시작하기

* 우선 이 저장소를 [fork][fork] 하시고, 이를 사용하기 위해서 다음과 같이 clone 주세요:

git clone git@github.com:your-username/algorithms.git

* 그리고 새로운 내용을 더할 branch를 만들어주세요. 예를 들어:
* add_XXX 만약 당신이 새로운 알고리즘이나 자료 구조를 추가 했을 경우.
* fix_XXX 만약 당신이 어떤 알고리즘이나 자료 구조에서 고쳐야할 bug를 발견했을 경우.
* test_XXX 만약 당신이 test/s를 작성한 경우.

당신은 다음과 같이 기여할 수 있습니다:
- 새로운 알고리즘을 구현해주세요. 그리고, 그것을 정확히 분류해주세요(e.g. [array](array), [dp](dp), etc).
만약 당신의 알고리즘이 어떤 섹션에도 포함이 되지 않는다면, 새로운 섹션을 만들어 주세요. 단, 당신의 알고리즘이 제대로 작동하는지
확인해주세요.
- 알고리즘들을 최적화하거나 향상시켜주세요.
- 문제들에 대해서 다른 해결 법을 추가해주세요.
- 버그들을 찾거나 고쳐주세요.
- 알고리즘들을 더 잘 설명하기 위한 새로운 예시들을 추가해주세요.
- test cases를 추가해주세요.

## Pull Requests
당신의 fork에 push 하고 pull request를 제출하세요 [submit a pull request][pr].

우리는 이를 검토할 것이며, 변화, 개량, 혹은 대안을 제시할 수 도 있습니다.
여기에 당신의 pull request가 허용될 가능성을 높여주는 몇몇 요소들이 있습니다:

* 모든 알고리즘들은 **Python 3**로 작성되어야 합니다.
(몇몇 알고리즘들은 여전히 _python 2_ 로 작성되어져 있습니다. 당신은 이를 Python 3으로 번역함으로써 저희에게 기여 해주실 수도 있습니다.
[those][issue120] to _Python 3_.)
* 깔끔하고 이해할 수 있는 코드를 작성해주세요.
* 코드에 대해 올바르게 주석 처리 해 주시고, 알고리즘이 수행하는 작업에 대해서 [docstrings][docstr]에서 설명해 주세요.
* 당신은 간단한 예시를 제시함으로써 출력 값에 대하여 설명하실 수도 있습니다.
* 또한 가능하다면 알고리즘에 대하여, 두 가지의 test cases를 포함 시켜주세요.
* [good commit message][commit]를 작성해주세요.


## Issues
만약 추가해야 할 알고리즘이 있거나, 현재 저희 프로젝트의 어떤 알고리즘에서 버그가 발견된다면 [new issue][newissue]에 이를 추가해주세요. 새로운 issue를 제안하기 전에 중복된 issue을 발생을 피하기 위해서 [existing issues][issues]를 확인해주세요. 또한, 현재 존재하는 issue를 해결하는 것을 고려해주시거나 issue에 대한 토의에 기여해주세요.

## Collaborators
저희 협업자 들에게 어떤 도움이나 확인이 필요하다면, 위 주소로 물어봐주세요.

[Keon Kim](https://github.com/keon)

[Rahul Goswami](https://github.com/goswami-rahul)

[Ankit Agarwal](https://github.com/ankit167)

[Hai Hoang Dang](https://github.com/danghai)

[Saad](https://github.com/SaadBenn)

[fork]: https://help.github.com/articles/fork-a-repo/
[docstr]: https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[pr]: https://github.com/keon/algorithms/compare/
[newissue]: https://github.com/keon/algorithms/issues/new
[issue120]: https://github.com/keon/algorithms/issues/120
[issues]: https://github.com/keon/algorithms/issues/
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include LICENSE
include algorithms/*
13 changes: 13 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(Put an `X` inside the `[ ]` to denote check mark `[X]`.)


- [ ] **If creating a new file :**
- [ ] added links to it in the README files ?
- [ ] included tests with it ?
- [ ] added description (overview of algorithm, time and space compleixty, and possible edge case) in docstrings ?

- [ ] **if done some changes :**
- [ ] wrote short description in the PR explaining what the changes do ?
- [ ] Fixes #[issue number] if related to any issue

- [ ] **other**
Loading