Skip to content

merge from upstream #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,071 commits into from
Jan 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1071 commits
Select commit Hold shift + click to select a range
6a39545
Created problem_112.py in project_euler (#2532)
Kush1101 Oct 3, 2020
43f9249
Update insert sort (#2493)
realDuYuanChao Oct 3, 2020
e9865ae
Update temperature_conversions.py (#2522)
SabariGanesh-K Oct 3, 2020
3b01695
Create auto_close_empty_issues.yml (#2756)
dickyw71 Oct 4, 2020
fb9b9ec
Update area.py (#2524)
SabariGanesh-K Oct 4, 2020
b934da4
Fix pre-commit error in GitHub action file (#2765)
dhruvmanila Oct 4, 2020
e040ad2
Add a solution for Project Euler 49 (#2702)
Iqrar99 Oct 5, 2020
437c725
Fixed allocation_number (#2768)
realDuYuanChao Oct 5, 2020
477b2c2
Hacktoberfest: Update Linked List - `print_reverse` method (#2792)
shermanhui Oct 5, 2020
7df91e6
Add type hints for searches/ternary_search.py (#2874)
Oct 5, 2020
edf2cd2
Fix typehints in project_euler/problem01 (#2891)
archaengel Oct 6, 2020
a56e548
Bring problem_30 solution in line with project style guidelines (#2896)
nthall Oct 6, 2020
a8ad2d1
Add Project Euler 120 solution (#2887)
c-utkarsh Oct 6, 2020
f36a2f6
Hacktoberfest 2020: Apply style guidelines for Project Euler problem_…
archaengel Oct 6, 2020
000cedc
Add type hints for "strings" folder (#2882)
Oct 6, 2020
e74adc4
Project Euler Problem 10: style improvements (#2924)
vovapi Oct 6, 2020
5440138
Hacktoberfest 2020: Add style improvements for Project Euler Problem …
archaengel Oct 6, 2020
91ad30c
Bring problem_29 solution in line with project style guidelines (#2949)
nthall Oct 7, 2020
4d4ce40
Add typehints and default input for project_euler/problem_25 (#2901)
nstoik Oct 7, 2020
ddf83ec
Add default arguments for Project Euler problem 6 (#2957)
dhruvmanila Oct 7, 2020
a5000d3
Add style improvements to solutions for Project Euler Problem 04 (#2945)
archaengel Oct 7, 2020
e41d041
Fixes: #2630 Add doctests and support for negative numbers (#2626)
pikulet Oct 7, 2020
11a5afd
Add type hints and default args for problem 20 (#2962)
dhruvmanila Oct 7, 2020
c510a7d
Add doomsday algorithm (#2903)
sharpblade4 Oct 7, 2020
05616ca
Update code style for Project Euler Problem 28 (#2976)
JasirZaeem Oct 7, 2020
c14cfa3
Address #2786 - Fix code style in Project Euler Problem 76 (#2978)
jrosellr Oct 7, 2020
40db8c2
Fix: Corrected test. List in test must be ordered. (#2632)
Oct 7, 2020
a698fa9
[Project Euler] Fix code style in Problem 55 (#2985)
jrosellr Oct 7, 2020
ff9be86
Hacktoberfest 2020: Rename method for project_euler/problem_99 (#2981)
wenhongg Oct 7, 2020
6a5a022
Add type hints and default args for Project Euler problem 5 (#2982)
sgalpha01 Oct 8, 2020
ef53bbd
Style Improvements for project_euler/problem_26 (#2958)
nstoik Oct 8, 2020
21581ea
Fix: Multiple errors in fibonacci search. (#2659)
Oct 8, 2020
f3fe29c
Add style improvements to Project Euler problem 8 (#3001)
archaengel Oct 8, 2020
6541236
Add solution method for project_euler/problem_37 (#2998)
wenhongg Oct 8, 2020
719c556
Add default args and type hints for problem 7 (#2973)
dhruvmanila Oct 8, 2020
7d54056
[Project Euler] Fix code style in Problem 41 (#2992)
jrosellr Oct 8, 2020
899870b
Add style improvements to Project Euler problem 9 (#3046)
archaengel Oct 8, 2020
e242485
Coding style with default argument for project_euler problem 27 (#3020)
nstoik Oct 8, 2020
7d0d773
Add Project Euler Problem 71: Fixes #2695 (#2785)
Oct 8, 2020
c2a5033
graphs/kruskal: add a test case to verify the correctness, fix styles…
meysam81 Oct 8, 2020
c9500dc
[Project Euler] Fix code style for problem 56 (#3050)
Aman333Saxena Oct 8, 2020
261be28
Fix coding style for Project Euler problem 39 (#3023)
fa1l Oct 9, 2020
a3bbcd5
[Project Euler] Added type hints and refactored the code for Problem …
sgalpha01 Oct 9, 2020
1c0deb8
Coding style change for project_euler problem 36 and 35 (#3062)
nstoik Oct 9, 2020
216a194
[Project Euler] Fix code style for problems 15 and 34 (#3076)
JuanJTorres11 Oct 9, 2020
10fe9d9
Coding style improvements for project_euler problem 45 & 16 (#3087)
fa1l Oct 9, 2020
ec9f6b6
Created max_sum_sliding_window in Python/other (#3065)
Kush1101 Oct 9, 2020
c83e4b7
Added solution for Project Euler problem 125 (#3073)
fpringle Oct 9, 2020
927e14e
Cleanup Project Euler Problem 01 (#2900)
drts01 Oct 10, 2020
8bd4ca6
Added all sub sequence type hints [Hacktober Fest] (#3123)
ruppysuppy Oct 10, 2020
02d3ab8
feat: added prim's algorithm v2 (#2742)
ruppysuppy Oct 10, 2020
3324bbb
Added sudoku type hints [Hacktober Fest] (#3124)
ruppysuppy Oct 10, 2020
c07b82f
Add Project Euler Problem 80 (#2885)
sandeepgupta007 Oct 10, 2020
c961d55
Add CODEOWNERS file to TheAlgorithms/Python (#3147)
dhruvmanila Oct 10, 2020
501a2ff
[Project Euler] Fix code style for multiple problems (#3094)
dhruvmanila Oct 10, 2020
2b5b2c6
Added solution for Project Euler problem 119 (#2931)
ksr1122 Oct 10, 2020
7311908
CODEOWNERS: Proper spelling of my userid (#3185)
cclauss Oct 11, 2020
f029fce
Add solution for Project Euler problem 191 (#2875)
darkstar Oct 11, 2020
60f9895
Fixes: #3163 - Add new solution for problem 234 (#3177)
Hyftar Oct 11, 2020
d02f6bb
Added solution to Project Euler 69 (#2934)
sarthaka1310 Oct 11, 2020
c425010
Fetch CO2 emission information (#3182)
silvaan Oct 11, 2020
3aef85b
Fix English grammar in computer vision (#3210)
evanblaine Oct 12, 2020
f7e7ad2
CONTRIBUTING.md Jupyter files belong in the Jupyter repo. (#3211)
cclauss Oct 12, 2020
3859c65
Added rail fence cipher (#3188)
PTK12 Oct 12, 2020
69f9283
Start running validate_solutions script for Travis CI (#3215)
dhruvmanila Oct 12, 2020
e551004
Update CONTRIBUTING.md (#3223)
forgithub0001 Oct 12, 2020
7a67148
Update README.md (#3221)
forgithub0001 Oct 12, 2020
7b60cea
Fix docstring for Euler problem 11, solution 2 (#3227)
KPLauritzen Oct 12, 2020
b6b025f
Fix docstring for Euler problem 11, solution 1 (#3228)
KPLauritzen Oct 12, 2020
8f8d39d
Add a solution to Project Euler 72 (#2940)
c-utkarsh Oct 12, 2020
08c26e6
Update CODEOWNERS to add my preferences (#3233)
Kush1101 Oct 12, 2020
695217e
Update CODEOWNERS (#3235)
cclauss Oct 12, 2020
50d7ed8
Add project euler problem 51 (#3018)
Hyftar Oct 12, 2020
6e01004
Add First Quantum Qiskit Code Tutorial (#3173)
abhishekjiitr Oct 12, 2020
29b32d3
Improve validate solutions script & fix pre-commit error (#3253)
dhruvmanila Oct 13, 2020
ca2d269
Add Qiskit Quantum NOT Gate Example Code (#3255)
abhishekjiitr Oct 13, 2020
34d63d5
Fix Travis CI slow build on Project Euler Solution job (#3262)
dhruvmanila Oct 13, 2020
23ab159
Fix errors in Quantum algorithm (#3273)
dhruvmanila Oct 14, 2020
f164e11
Update CODEOWNERS (#3280)
l3str4nge Oct 14, 2020
35eefac
fixed error (#3281)
nkpro2000sr Oct 14, 2020
f0aa63f
Add randomized heap. (#3241)
Phil9l Oct 14, 2020
dc06958
Added binary tree mirror algorithm (#3159)
susmith98 Oct 14, 2020
75a9b46
added script to perform quantum entanglement (#3270)
nkpro2000sr Oct 14, 2020
5fcd250
Added decimal_to_binary_recursion.py (#3266)
cybov Oct 14, 2020
e3c07f9
Add skew heap data structure. (#3238)
Phil9l Oct 14, 2020
fda57d6
codespell.yml: Remove unused install of flake8 (#3283)
cclauss Oct 14, 2020
ed30749
Added swap case program and removed unexpected expression part (#3212)
mayur200 Oct 14, 2020
671ab1d
Project Euler 62 Solution (#3029)
peteryao7 Oct 15, 2020
2d7e08e
Update README.md for Project Euler (#3256)
dhruvmanila Oct 15, 2020
44254cf
Rename Project Euler directories and other dependent changes (#3300)
dhruvmanila Oct 15, 2020
de2725f
Update mergesort.py (#2563)
akashgkrishnan Oct 15, 2020
aeb6edc
.pre-commit-config.yaml: Disable trailing-whitespace fixer (#3306)
cclauss Oct 15, 2020
a119005
Add solution for Project Euler problem 113 (#3109)
fpringle Oct 15, 2020
9482f6a
Add solution for Project Euler problem 173. (#3075)
fpringle Oct 15, 2020
e035c61
add binary_tree_traversals.py to data_structures (#3297)
rajansh87 Oct 15, 2020
7c5cc28
Revert recent changes to .pre-commit-config.yaml (#3318)
cclauss Oct 15, 2020
f0033f8
Create natural_sort.py (#3286)
Mozartuss Oct 15, 2020
2e90deb
Tighten up quicksort() (#3319)
cclauss Oct 15, 2020
316fc41
Add solution for Project Euler problem 74. (#3125)
fpringle Oct 15, 2020
83b8250
Graphs/kruskal: adding doctest & type hints (#3101)
meysam81 Oct 15, 2020
cc050db
test/graphs/prim: writing a test case to verify the correctness of th…
meysam81 Oct 15, 2020
5b024f4
BROKEN BUILD: Fix a failing precommit test (#3344)
cclauss Oct 15, 2020
9d745b6
Add typehints ciphers and bool alg (#3264)
jenia90 Oct 16, 2020
d8f5b31
Add solution for Project Euler problem 72 (#3122)
fpringle Oct 16, 2020
b96e6c7
Add solution for Project Euler problem 174. (#3078)
fpringle Oct 16, 2020
b74f3a8
Add solution for Project Euler problem 91. (#3144)
fpringle Oct 16, 2020
9643d30
Add solution for Project Euler problem 75. (#3129)
fpringle Oct 16, 2020
c33b683
New doubly linkedlist PR: pull/2573 (#3380)
akashgkrishnan Oct 16, 2020
fc98961
Hacktoberfest 2020: Added computer vision algorithm (#2946)
TanayKarve Oct 16, 2020
5887567
Project Euler 57 - Square root convergents (#3259)
bh2smith Oct 16, 2020
7d84f7f
Adding in the evaluate postfix notation using Stack (#2598)
akashgkrishnan Oct 16, 2020
5cb41e7
Create GitHub action only for Project Euler (#3378)
dhruvmanila Oct 17, 2020
35cade8
Create .gitattributes for Cross OS compatibility (#3410)
acoder77 Oct 17, 2020
a88006d
Qiskit: Add Quantum Half Adder (#3405)
abhishekjiitr Oct 17, 2020
05f4089
Fixed typo in caesar_cipher.py (#2979)
CapofWeird Oct 17, 2020
f34434a
Fix the build -- 88 chars per line max. (#3437)
cclauss Oct 17, 2020
3bbec1d
create beaufort cipher (#3206)
radadiyamohit81 Oct 17, 2020
2ec3750
create monoalphabetic cipher (#3449)
radadiyamohit81 Oct 17, 2020
beb2c35
Implement Deutsch-Jozsa Algorithm In Qiskit (#3447)
abhishekjiitr Oct 18, 2020
a481bfa
Fix broken build: Remove trailing spaces (#3501)
cclauss Oct 18, 2020
4c92f8c
Replace main with __main__ (#3518)
Anselmoo Oct 18, 2020
79d5755
Add Patience Sort (#3469)
JoaoVictorNascimento Oct 18, 2020
802ac83
Add a naive recursive implementation of 0-1 Knapsack Problem (#2743)
tbsschroeder Oct 19, 2020
7423302
Median of Two Arrays (#3554)
anneCoder1805 Oct 20, 2020
9b95e4f
Pyupgrade to python3.8 (#3616)
cclauss Oct 21, 2020
5e64260
Update doubly linked list (#3619)
realDuYuanChao Oct 21, 2020
c2b7acd
Update Linked Stack (#3625)
realDuYuanChao Oct 23, 2020
04fae4d
Improved and shortened prime_check.py (#3454)
Rolv-Apneseth Oct 23, 2020
46af42d
Fix coin change (#2571)
himadriganguly Oct 23, 2020
20260d2
Add Project Euler 65 Solution (#3035)
peteryao7 Oct 24, 2020
409438d
Add solution for Project Euler problem 38. (#3115)
fpringle Oct 24, 2020
1cd8e68
Update LinkedQueue (#3683)
realDuYuanChao Oct 24, 2020
b97529d
Move validate_solutions and add durations flag to pytest.ini (#3704)
dhruvmanila Oct 24, 2020
12c6980
Forecast (#3219)
nandiya Oct 24, 2020
89e8dbf
removed extra line to match rest of file (#3528)
theprogramsam Oct 24, 2020
5be77f3
Add 0-1-bfs. (#3285)
Phil9l Oct 24, 2020
98e9d6b
Fix style of the first ten solutions for Project Euler (#3242)
darkstar Oct 25, 2020
3a191d9
Add solution to Project Euler problem 81 (#3408)
ayoubc Oct 25, 2020
1b5c1b8
Add single bit manipulation operations. (#3284)
Phil9l Oct 25, 2020
81b82be
Update ceil and floor function (#3710)
realDuYuanChao Oct 25, 2020
b93a9d8
Update lucas_series.py to include another method (#3620)
Kush1101 Oct 26, 2020
47199c1
Update CONTRIBUTING.md (#3698)
amaank404 Oct 26, 2020
8f81c46
Made improvements to combinations.py (#3681)
Rolv-Apneseth Oct 26, 2020
9eefe68
fixes: #2969 (#3756)
Gau02 Oct 26, 2020
95db17c
Added two pointer solution for two sum problem (#3468)
shabab477 Oct 26, 2020
a5aef14
Fix Project Euler Readme (#3754)
poyea Oct 26, 2020
aebf9bd
Added reverse_letters.py (#3730)
Snimer Oct 27, 2020
4fa8c9d
Update graphs/depth_first_search_2.py (#3799)
taseikyo Oct 29, 2020
fd7da5f
Add IBM Qiskit References (#2561)
abhinand-c Oct 29, 2020
e20895a
Implement the melkman anlgorithm for computing convex hulls (#2916)
Oct 29, 2020
e172a8b
Hacktoberfest: Added first solution to Project Euler problem 58 (#3599)
sharmapulkit04 Oct 29, 2020
a1e9656
Hacktoberfest: adding doctest to radix_sort.py file (#2779)
mvhb Oct 29, 2020
9971f98
Added solution for Project Euler problem 87. (#3141)
fpringle Oct 29, 2020
99adac0
Add first solution for Project Euler Problem 207 (#3522)
PetitNigaud Oct 29, 2020
a6831c8
math/greatest_common_divisor: add support for negative numbers (#2628)
pikulet Oct 29, 2020
a03b3f7
Balanced parentheses (#3768)
realDuYuanChao Oct 29, 2020
c83ecac
No issues so far (#3835)
Oct 30, 2020
a538989
Added decimal_isolate.py (#3700)
JakeGerber Oct 30, 2020
1f65007
Shortened code (#3855)
jbaenaxd Nov 1, 2020
d3ead53
Added solution to Project Euler problem 301 (#3343)
KumarUniverse Nov 1, 2020
d8f573c
Add solution to problem 74 (#3110)
GGn0 Nov 1, 2020
786b324
Update infix to postfix (#3817)
realDuYuanChao Nov 1, 2020
61cb921
Project Euler 206 Solution (#3829)
peteryao7 Nov 2, 2020
eaa7ef4
kth order statistic divide and conquer algorithm (#3690)
choyiny Nov 3, 2020
ff00bfa
Added a solution for Project Euler Problem 203 "Squarefree Binomial C…
fernandobperezm Nov 3, 2020
29d0fbb
HACKTOBERFEST - Added solution to Euler 64. (#3706)
sudoShikhar Nov 3, 2020
fdba34f
Cache pre-commit workflow (#3863)
dhruvmanila Nov 5, 2020
c8db6a2
Add solution for Project Euler problem 123 (#3072)
ksr1122 Nov 6, 2020
c0d88d7
Fix handling of non ascii characters in swap case (fixes: #3847) (#3848)
frankschmitt Nov 6, 2020
686d837
Add project euler problem 50 (#3016)
Hyftar Nov 8, 2020
83a24cb
Update graphs/graph_list.py (#3813)
taseikyo Nov 8, 2020
3d7704f
Add config details for the stale action (#3870)
dhruvmanila Nov 8, 2020
eab6b70
DPLL algorithm (#3866)
Shivanirudh Nov 8, 2020
a6ad25c
Add molecular_chemistry.py (#2944)
FirePing32 Nov 10, 2020
4851942
Reduce complexity linear_discriminant_analysis. (#2452)
NumberPiOso Nov 11, 2020
eb5a951
Peak of unimodal list DNC algorithm (#3691)
choyiny Nov 11, 2020
9f6188c
Add Quantum Full Adder circuit for classical integers (#2954)
rupansh Nov 11, 2020
32def4b
add crawl_google_scholar_citation.py (#3879)
boyuuuun Nov 13, 2020
ae4d7d4
add similarity_search.py in machine_learning (#3864)
SteveKimSR Nov 13, 2020
c6dd975
Add type hints and tests. (#2461)
Nov 14, 2020
78a0f61
Add Maths / Sigmoid Function (#3880)
sukyung99 Nov 15, 2020
b31ed8c
Modified comments on upper.py (#3884)
sethusankar Nov 18, 2020
8a134e1
update area.py (#3862)
Suyeonkkk Nov 18, 2020
b9b7fff
Move CI tests from Travis to GitHub (#3889)
dhruvmanila Nov 19, 2020
bb693aa
Delete Travis_CI_tests_are_failing.md (#3902)
cclauss Nov 19, 2020
fe68859
Update related to the change in CI testing (#3903)
dhruvmanila Nov 19, 2020
2885a8c
Run latest stale action (#3904)
dhruvmanila Nov 19, 2020
83b8b3c
Fixes: #3869: Optimize CI runtime of Project Euler's Problem 74's Sol…
Nov 20, 2020
fe0f2f3
Try the stale bot instead of stale action (#3906)
dhruvmanila Nov 20, 2020
d0bc9e2
Add solution for Project Euler problem 188 (#2880)
darkstar Nov 21, 2020
28d33f4
Project Euler 70 Solution (#3041)
peteryao7 Nov 21, 2020
c938e73
Added solution for Project Euler problem 129. (#3113)
fpringle Nov 21, 2020
06f01c0
Remove stale action workflow file (#3915)
dhruvmanila Nov 21, 2020
b55e132
Add solution for Project Euler: Problem 89 (#2948)
coryallegory Nov 21, 2020
fa364df
Changed how the Visited nodes are tracked (#3811)
akashgkrishnan Nov 21, 2020
f036b9f
Web programming contribution (#2436)
niranjan195 Nov 21, 2020
f2c1f98
Remove workflow file, task checked by the bot (#3917)
dhruvmanila Nov 21, 2020
03e7f37
[mypy] math/sieve_of_eratosthenes: Add type hints (#2627)
pikulet Nov 23, 2020
49d0c41
Renamed octal_to_decimal to octal_to_decimal.py (#3420)
cybov Nov 23, 2020
9bf7b18
Improve Base16 Codebase (#3534)
tanyonghe Nov 23, 2020
3fdbf97
Python 3.9 (#3926)
cclauss Nov 24, 2020
e031ad3
Create instagram_pic (#3945)
Epic-R-R Nov 24, 2020
287bf26
Add a divide and conquer method in finding the maximum difference pai…
choyiny Nov 25, 2020
098f02b
Fixes: #3944 Authentication error; use tokens instead (#3949)
lawric1 Nov 25, 2020
5eb5483
Update stalebot to take 5 actions per hour (#3922)
dhruvmanila Nov 25, 2020
2b50aaf
Create intro_sort.py (#3877)
YeonJeongLee00 Nov 25, 2020
4191b95
Ohm's Law algorithm added (#3934)
erdum Nov 25, 2020
ce3ce3f
Replace base64_cipher.py with an easy to understand version (#3925)
hfz1337 Nov 25, 2020
ac6a160
added binary_count_trailing_zeros.py (#2557)
Nov 26, 2020
c5fb0a9
Cleaned up knapsack and images directory (#3972)
dhruvmanila Nov 27, 2020
10427f8
Create euclidean_distance.py (#3350)
andrewctam Nov 27, 2020
9333d2f
Create weight_conversion.py (#3964)
AnubhavSolanki Nov 27, 2020
1e1708b
Added solution for Project Euler problem 77 (#3132)
fpringle Nov 27, 2020
9c6080a
data_structures/linked_list: Add __str__() function (#3961)
arif599 Nov 28, 2020
8cafadd
Update CONTRIBUTING.md with pre-commit plugin instructions (#3979)
amaank404 Nov 28, 2020
bfb0c35
Fixed LGTM and typehint (#3970)
realDuYuanChao Nov 28, 2020
52a6213
Instagram Video and IGTV downloader (#3981)
Epic-R-R Nov 29, 2020
5de90aa
Hacktoberfest 2020: Conway's Game of Life (#3070)
Nov 29, 2020
e077662
Add static typing to backtracking algorithms (#2684)
jenia90 Nov 29, 2020
0febbd3
Add typehints to blockchain (#3149)
jenia90 Nov 29, 2020
25164bb
Fix mypy in #2684 (#3987)
poyea Nov 29, 2020
ba6310b
Validate only submitted Project Euler solution (#3977)
dhruvmanila Nov 29, 2020
06dad4f
Fix mypy in #3149 (#3988)
poyea Nov 29, 2020
daceb87
Electric power (#3976)
erdum Nov 29, 2020
07a4ce9
Update pigeon_sort.py (#2359)
Nov 30, 2020
f8b2c43
Fix pre-commit error on master (#3992)
dhruvmanila Nov 30, 2020
860d4f5
Create merge_two_lists.py that implements merging of two sorted linke…
maldz3 Dec 3, 2020
c359768
Update bitonic_sort with type hints, doctest, snake_case names (#4016)
joesinghh Dec 9, 2020
c39be1d
update graphs/breadth_first_search.py (#3908)
taseikyo Dec 9, 2020
e7ab06f
Implemented minimum steps to one using tabulation. (#3911)
echoaj Dec 9, 2020
b180139
Add Project Euler Problem 180 (#4017)
fpringle Dec 9, 2020
bd4b83f
Chore: Added type hints to searches/binary_search.py (#2682)
UmairKamran Dec 9, 2020
75759fa
Add solution for Project Euler problem 085 (#4024)
fpringle Dec 10, 2020
110a740
Update ciphers/caesar_cipher.py with type hints (#3860)
DjaouadNM Dec 10, 2020
533e36d
Add conjugate gradient method algorithm (#2486)
zakademic Dec 12, 2020
a6f6eb2
Add solution for Project Euler problem 86 (#4025)
fpringle Dec 12, 2020
ae8a5f8
Add solution for Project Euler problem 59 (#4031)
fpringle Dec 13, 2020
53371b2
Optimization for shell sort (#4038)
realDuYuanChao Dec 18, 2020
00f22a9
Add solution for Project Euler problem 135 (#4035)
sharmapulkit04 Dec 19, 2020
0388961
add integer to roman function (#4050)
Ksengine Dec 21, 2020
2ff2ccb
Add solution for Project Euler problem 101 (#4033)
fpringle Dec 22, 2020
ad5108d
Fix mypy errors for arithmetic analysis algorithms (#4053)
dhruvmanila Dec 23, 2020
0ccb213
Add solution for Project Euler problem 102 (#4051)
fpringle Dec 23, 2020
f3ba9b6
[mypy] Add/fix type annotations for backtracking algorithms (#4055)
dhruvmanila Dec 24, 2020
8f47d9f
Fix type annotations for bit manipulation algorithms (#4056)
dhruvmanila Dec 24, 2020
207ac95
[mypy] Add type hints and docstrings to heap.py (#3013)
MarkHershey Dec 26, 2020
64d8504
Add 2-hidden layer neural network with back propagation using sigmoid…
raman77768 Dec 26, 2020
00e279e
[mypy] Add/fix type annotations for scheduling algorithms (#4074)
shan7030 Dec 28, 2020
80f5213
Add solution for Project Euler problem 107 (#4066)
fpringle Dec 28, 2020
dd4b265
Add function to calculate area of triangle using Heron's formula (#4065)
SiddhantJain15 Dec 28, 2020
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
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]
sort = Cover
omit =
.env/*
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
88 changes: 88 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# More details are here: https://help.github.com/articles/about-codeowners/

# The '*' pattern is global owners.

# Order is important. The last matching pattern has the most precedence.

/.* @cclauss @dhruvmanila

# /arithmetic_analysis/

# /backtracking/

# /bit_manipulation/

# /blockchain/

# /boolean_algebra/

# /cellular_automata/

# /ciphers/ @cclauss # TODO: Uncomment this line after Hacktoberfest

# /compression/

# /computer_vision/

# /conversions/ @cclauss # TODO: Uncomment this line after Hacktoberfest

# /data_structures/ @cclauss # TODO: Uncomment this line after Hacktoberfest

/digital_image_processing/ @mateuszz0000

# /divide_and_conquer/

/dynamic_programming/ @Kush1101

# /file_transfer/

# /fuzzy_logic/

# /genetic_algorithm/

# /geodesy/

# /graphics/

# /graphs/

# /greedy_method/

# /hashes/

# /images/

# /linear_algebra/

# /machine_learning/

/maths/ @Kush1101

# /matrix/

# /networking_flow/

# /neural_network/

# /other/ @cclauss # TODO: Uncomment this line after Hacktoberfest

/project_euler/ @dhruvmanila @Kush1101

# /quantum/

# /scheduling/

# /scripts/

# /searches/

/sorts/ @mateuszz0000

# /strings/ @cclauss # TODO: Uncomment this line after Hacktoberfest

# /traversals/

/web_programming/ @cclauss
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### **Describe your change:**



* [ ] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Documentation change?

### **Checklist:**
* [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md).
* [ ] This pull request is all my own work -- I have not plagiarized.
* [ ] I know that pull requests will not be merged if they fail the automated tests.
* [ ] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
* [ ] All new Python files are placed inside an existing directory.
* [ ] All filenames are in all lowercase characters with no spaces or dashes.
* [ ] All functions and variable names follow Python naming conventions.
* [ ] All function parameters and return values are annotated with Python [type hints](https://docs.python.org/3/library/typing.html).
* [ ] All functions have [doctests](https://docs.python.org/3/library/doctest.html) that pass the automated testing.
* [ ] All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
* [ ] If this pull request resolves one or more open issues then the commit message contains `Fixes: #{$ISSUE_NO}`.
63 changes: 63 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- "Status: on hold"

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: stale

# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 5

# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
pulls:
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

# Comment to post when closing a stale Pull Request.
closeComment: >
Please reopen this pull request once you commit the changes requested
or make improvements on the code. If this is not the case and you need
some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms)
or ping one of the reviewers. Thank you for your contributions!

issues:
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

# Comment to post when closing a stale Issue.
closeComment: >
Please reopen this issue once you add more information and updates here.
If this is not the case and you need some help, feel free to seek help
from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the
reviewers. Thank you for your contributions!
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "build"

on:
pull_request:
schedule:
- cron: "0 0 * * *" # Run everyday

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools six wheel
python -m pip install pytest-cov -r requirements.txt
- name: Run tests
run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/ --cov-report=term-missing:skip-covered --cov=. .
- if: ${{ success() }}
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
21 changes: 21 additions & 0 deletions .github/workflows/directory_writer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The objective of this GitHub Action is to update the DIRECTORY.md file (if needed)
# when doing a git push
name: directory_writer
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1 # v1, NOT v2
- uses: actions/setup-python@v2
- name: Write DIRECTORY.md
run: |
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Update DIRECTORY.md
run: |
git add DIRECTORY.md
git commit -am "updating DIRECTORY.md" || true
git push --force origin HEAD:$GITHUB_REF || true
21 changes: 21 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pre-commit

on: [push, pull_request]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/pre-commit
~/.cache/pip
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/setup-python@v2
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
- run: pre-commit run --verbose --all-files --show-diff-on-failure
35 changes: 35 additions & 0 deletions .github/workflows/project_euler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
pull_request:
# Run only if a file is changed within the project_euler directory and related files
paths:
- "project_euler/**"
- ".github/workflows/project_euler.yml"
- "scripts/validate_solutions.py"
schedule:
- cron: "0 0 * * *" # Run everyday

name: "Project Euler"

jobs:
project-euler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pytest and pytest-cov
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pytest pytest-cov
- run: pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
validate-solutions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pytest and requests
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pytest requests
- run: pytest scripts/validate_solutions.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35 changes: 26 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ __pycache__/
*.so

# Distribution / packaging
.vscode/
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -21,12 +19,14 @@ lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# Usually these files are written by a Python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
Expand All @@ -43,8 +43,9 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
*,cover
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand All @@ -53,6 +54,7 @@ coverage.xml
# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
Expand All @@ -67,7 +69,7 @@ docs/_build/
# PyBuilder
target/

# IPython Notebook
# Jupyter Notebook
.ipynb_checkpoints

# pyenv
Expand All @@ -76,17 +78,32 @@ target/
# celery beat schedule file
celerybeat-schedule

# dotenv
.env
# SageMath parsed files
*.sage.py

# virtualenv
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

.DS_Store
.idea
.DS_Store
.try
.vscode/
2 changes: 2 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tasks:
- init: pip3 install -r ./requirements.txt
12 changes: 0 additions & 12 deletions .lgtm.yml

This file was deleted.

Loading