Skip to content

Python #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

Open
wants to merge 3,380 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3380 commits
Select commit Hold shift + click to select a range
2d0ed13
[pre-commit.ci] pre-commit autoupdate (#11215)
pre-commit-ci[bot] Dec 18, 2023
b46fc1d
Corrected the Python Doctest command in equilibrium_index_in_array.py…
thecoddiwompler Dec 19, 2023
7b9f82c
optimize quicksort implementation (#11196)
tusharpamnani Dec 20, 2023
94c8e1a
[pre-commit.ci] pre-commit autoupdate (#11223)
pre-commit-ci[bot] Dec 25, 2023
51c5c87
File moved to neural_network/activation_functions (#11216)
ParamThakkar123 Dec 27, 2023
9caf478
[pre-commit.ci] pre-commit autoupdate (#11231)
pre-commit-ci[bot] Jan 8, 2024
227944e
fix: consider months and days in `years_old` (#11234)
vil02 Jan 12, 2024
a56f24e
fix: use `GITHUB_ACTOR` in `git config` (#11233)
vil02 Jan 12, 2024
ffb93ad
chore: update `actions/setup-python` to `v5` (#11236)
vil02 Jan 12, 2024
13559ae
style: use proper indentation in `ruff.yml` (#11237)
vil02 Jan 13, 2024
dd47651
[pre-commit.ci] pre-commit autoupdate (#11246)
pre-commit-ci[bot] Jan 15, 2024
4b6f688
Use compiled black as the pre-commit formatter (#11247)
ZJUGuoShuai Jan 16, 2024
0101dd4
Fixed Inappropriate Logical Expression (#11203)
fazledyn-or Jan 16, 2024
05a5cda
Added doctest to skew_heap.py (#11147)
Suyashd999 Jan 18, 2024
3952ba7
Add categorical focal cross-entropy loss algorithm (#11248)
ZJUGuoShuai Jan 18, 2024
b01571d
[pre-commit.ci] pre-commit autoupdate (#11255)
pre-commit-ci[bot] Jan 22, 2024
b092d77
fixes #11256 : computer vision link update in .computer_vision/README…
geoffreylgv Jan 24, 2024
c0e700c
[pre-commit.ci] pre-commit autoupdate (#11261)
pre-commit-ci[bot] Jan 29, 2024
c1d29ba
Add smooth l1 loss algorithm (#11239)
ZJUGuoShuai Jan 30, 2024
8995f45
Rename .github/.github/dependabot.yml to .github/dependabot.yml (#11264)
cclauss Feb 1, 2024
6a16974
Bump actions/cache from 3 to 4 (#11265)
dependabot[bot] Feb 1, 2024
4128f19
Fixed lines that needed to be uncommented after Hacktoberfest (#11267)
tonguegrease Feb 2, 2024
ed8d920
[pre-commit.ci] pre-commit autoupdate (#11275)
pre-commit-ci[bot] Feb 5, 2024
5d6846b
[pre-commit.ci] pre-commit autoupdate (#11292)
pre-commit-ci[bot] Feb 12, 2024
c6ca194
[pre-commit.ci] pre-commit autoupdate (#11296)
pre-commit-ci[bot] Feb 19, 2024
fd27953
Reenable files when TensorFlow supports the current Python (#11318)
MaximSmolskiy Mar 12, 2024
5f95d6f
fix: function name typo (#11319)
testwill Mar 12, 2024
bc8df6d
[pre-commit.ci] pre-commit autoupdate (#11322)
pre-commit-ci[bot] Mar 13, 2024
435309a
[pre-commit.ci] pre-commit autoupdate (#11325)
pre-commit-ci[bot] Mar 18, 2024
8faf823
adding a proper fractions algorithm (#11224)
meg-1 Mar 20, 2024
a936e94
Enable ruff ARG001 rule (#11321)
MaximSmolskiy Mar 20, 2024
481c071
add vicsek to fractals (#11306)
PAxitoo Mar 20, 2024
102e9a3
Enable ruff DTZ001 rule (#11326)
MaximSmolskiy Mar 25, 2024
ead5431
[pre-commit.ci] pre-commit autoupdate (#11328)
pre-commit-ci[bot] Mar 25, 2024
b5cb1fb
Enable ruff DTZ005 rule (#11327)
MaximSmolskiy Mar 25, 2024
19fd435
Improved doctests for some functions (#11334)
MrBubb1es Mar 28, 2024
516a302
Enable ruff PLR5501 rule (#11332)
MaximSmolskiy Mar 28, 2024
da47d5c
Enable ruff N999 rule (#11331)
MaximSmolskiy Mar 28, 2024
efb7463
Enable ruff PLW0120 rule (#11330)
MaximSmolskiy Mar 28, 2024
f2246ce
Enable ruff ICN001 rule (#11329)
MaximSmolskiy Mar 28, 2024
c328b00
[pre-commit.ci] pre-commit autoupdate (#11339)
pre-commit-ci[bot] Apr 1, 2024
39daaf8
Enable ruff RUF100 rule (#11337)
MaximSmolskiy Apr 1, 2024
f8a9489
Enable ruff NPY002 rule (#11336)
MaximSmolskiy Apr 1, 2024
93fb555
Enable ruff SIM102 rule (#11341)
MaximSmolskiy Apr 2, 2024
f8cdb3e
Enable ruff S105 rule (#11343)
MaximSmolskiy Apr 2, 2024
f437f92
Enable ruff INP001 rule (#11346)
MaximSmolskiy Apr 2, 2024
f5bbea3
Enable ruff RUF005 rule (#11344)
MaximSmolskiy Apr 2, 2024
53b2926
Enable ruff PGH003 rule (#11345)
MaximSmolskiy Apr 2, 2024
cc2f5b1
Do not fix ruff EXE001 rule (#11350)
MaximSmolskiy Apr 8, 2024
9e55c9d
Added documentations (#11352)
Jiayoqin Apr 8, 2024
14ca726
[pre-commit.ci] pre-commit autoupdate (#11355)
pre-commit-ci[bot] Apr 9, 2024
0a9a860
[pre-commit.ci] pre-commit autoupdate (#11364)
pre-commit-ci[bot] Apr 15, 2024
a42eb35
Enable ruff E741 rule (#11370)
MaximSmolskiy Apr 19, 2024
4259348
Add doctests in all functions in basic_string.py (#11374)
KelvinPuyam Apr 20, 2024
7b88e15
Enable ruff RUF007 rule (#11349)
MaximSmolskiy Apr 20, 2024
2702bf9
Enable ruff S113 rule (#11375)
MaximSmolskiy Apr 21, 2024
dbfa218
[pre-commit.ci] pre-commit autoupdate (#11380)
pre-commit-ci[bot] Apr 22, 2024
79dc7c9
Enable ruff RUF001 rule (#11378)
MaximSmolskiy Apr 22, 2024
4700297
Enable ruff RUF002 rule (#11377)
MaximSmolskiy Apr 22, 2024
d016fda
Enable ruff RUF003 rule (#11376)
MaximSmolskiy Apr 22, 2024
3925b81
Fix ARG005 per file ignore (#11383)
MaximSmolskiy Apr 24, 2024
2d6be5f
Enable ruff UP031 rule (#11388)
MaximSmolskiy Apr 30, 2024
a7e0b14
[pre-commit.ci] pre-commit autoupdate (#11387)
pre-commit-ci[bot] Apr 30, 2024
c026b19
adding a matrix equalization algorithm (#11360)
meg-1 May 1, 2024
5131e31
Fix some ARG002 per file ignores (#11382)
MaximSmolskiy May 1, 2024
ea53051
Use `spawn` start method in multiprocessing programs (#11391)
XuehaiPan May 2, 2024
1868c0b
[pre-commit.ci] pre-commit autoupdate (#11394)
pre-commit-ci[bot] May 6, 2024
c599f6c
Fix some SIM114 per file ignores (#11395)
MaximSmolskiy May 10, 2024
1f368da
[pre-commit.ci] pre-commit autoupdate (#11402)
pre-commit-ci[bot] May 14, 2024
0139143
[pre-commit.ci] pre-commit autoupdate (#11408)
pre-commit-ci[bot] May 20, 2024
82aa909
[pre-commit.ci] pre-commit autoupdate (#11417)
pre-commit-ci[bot] May 28, 2024
b8afb21
Changed the N to self.N in show_data in segment_tree.py (#11276)
Marco-campione-github May 31, 2024
70bd06d
add doctest/document to actual_power and document to power (#11187)
pedram-mohajer Jun 1, 2024
723cf9c
Remove duplicate implementation of median of two arrays algorithm (#1…
tianyizheng02 Jun 1, 2024
edee8e6
use format to remove '0b' (#11307)
groupsvkg Jun 2, 2024
2f1704d
issue #11150 Ensure explicit column selection and data type setting i…
MannCode Jun 3, 2024
ffaa976
Fixes #9943 (#10252)
Jun 3, 2024
c919579
Add KL divergence loss algorithm (#11238)
ZJUGuoShuai Jun 3, 2024
5827aac
[pre-commit.ci] pre-commit autoupdate (#11430)
pre-commit-ci[bot] Jun 3, 2024
41a1cdf
Add rainfall intensity calculation function (#11432)
yuriishizawa Jun 11, 2024
4467423
Fix grammar and spelling mistakes in sequential_minimum_optimization.…
tianyizheng02 Jun 13, 2024
af6a45e
Remove some per file ignores (#11381)
MaximSmolskiy Jun 16, 2024
df94d46
Fix/fixes get top billionaries code (#11466)
ra230537 Jun 16, 2024
31d1cd8
[pre-commit.ci] pre-commit autoupdate (#11435)
pre-commit-ci[bot] Jun 17, 2024
1cfca52
chore: fix typos (#11467)
xiaoxianBoy Jun 17, 2024
75b8667
[pre-commit.ci] pre-commit autoupdate (#11472)
pre-commit-ci[bot] Jun 24, 2024
6882a8b
Tests/add new test case weight_conversion (#11468)
ShiryuReb Jun 26, 2024
716bdeb
[pre-commit.ci] pre-commit autoupdate (#11473)
pre-commit-ci[bot] Jul 2, 2024
c1dc8e9
Create count_vowels.py (#11474)
its-100rabh Jul 4, 2024
9190888
[pre-commit.ci] pre-commit autoupdate (#11481)
pre-commit-ci[bot] Jul 8, 2024
2d8f22a
[pre-commit.ci] pre-commit autoupdate (#11489)
pre-commit-ci[bot] Jul 15, 2024
d9ded07
[pre-commit.ci] pre-commit autoupdate (#11495)
pre-commit-ci[bot] Jul 23, 2024
1468003
Add doctests to interpolation_search.py (#11492)
Ihor-Pryyma Jul 25, 2024
240d1b7
[pre-commit.ci] pre-commit autoupdate (#11500)
pre-commit-ci[bot] Jul 29, 2024
dfe6795
[pre-commit.ci] pre-commit autoupdate (#11507)
pre-commit-ci[bot] Aug 5, 2024
ed1900f
Fix typo in integration_by_simpson_approx.py (#11501)
CarlosZamG Aug 6, 2024
31c424f
[pre-commit.ci] pre-commit autoupdate (#11515)
pre-commit-ci[bot] Aug 12, 2024
4841828
Remove separate directory for `gaussian_elimination_pivoting.py` (#11…
tianyizheng02 Aug 22, 2024
e3fa014
Fix ruff (#11527)
MaximSmolskiy Aug 25, 2024
c8e131b
[pre-commit.ci] pre-commit autoupdate (#11522)
pre-commit-ci[bot] Aug 26, 2024
bd8085c
[pre-commit.ci] pre-commit autoupdate (#11535)
pre-commit-ci[bot] Sep 2, 2024
f16d38f
kd tree data structure implementation (#11532)
Ramy-Badr-Ahmed Sep 3, 2024
729c1f9
[pre-commit.ci] pre-commit autoupdate (#11557)
pre-commit-ci[bot] Sep 9, 2024
77bbe58
[pre-commit.ci] pre-commit autoupdate (#11568)
pre-commit-ci[bot] Sep 16, 2024
50cc00b
[pre-commit.ci] pre-commit autoupdate (#11579)
pre-commit-ci[bot] Sep 23, 2024
9b5641d
balance parenthesis (add closing bracket) (#11563)
apples53 Sep 24, 2024
976e385
Implemented Suffix Tree Data Structure (#11554)
Ramy-Badr-Ahmed Sep 28, 2024
a9ca110
Scripts for closing pull requests for Hacktoberfest (#11587)
cclauss Sep 30, 2024
a7bfa22
[pre-commit.ci] pre-commit autoupdate (#11594)
pre-commit-ci[bot] Sep 30, 2024
0177ae1
Upgrade to Python 3.13 (#11588)
cclauss Sep 30, 2024
0abeeab
Drop six from our GitHub Actions (#11621)
cclauss Oct 1, 2024
43a47e0
Add word ladder algorithm in backtracking (#11590)
Hardvan Oct 2, 2024
00e9d86
Improve comments, add doctests in symmetric_tree.py (#11619)
Hardvan Oct 2, 2024
918fa8b
Optimized O(n) to O(1) (#11669)
1227haran Oct 2, 2024
f4b4ac1
Adding Doctests to floyd_warshall.py (#11690)
alirashidAR Oct 2, 2024
080e790
Add Word Break algorithm (#11687)
AswinPKumar01 Oct 3, 2024
40f65e8
Improve comments, docstrings in next_greatest_element.py (#11685)
JeevaRamanathan Oct 3, 2024
e20b503
Improve comments, add doctests for kahns_algorithm_topo.py (#11668)
Hardvan Oct 4, 2024
917ad62
Removed incorrect type hints (#11711)
MSaiAswin Oct 4, 2024
59ff87d
Added doctests to min_cost_string_conversion.py and removed :c specif…
Lonercode Oct 4, 2024
9a572de
feat: Implemented Matrix Exponentiation Method (#11747)
Acuspeedster Oct 4, 2024
5a8655d
Added new algorithm to generate numbers in lexicographical order (#11…
1227haran Oct 5, 2024
50aca04
feat: increase test coverage of longest_common_subsequence to 75% (#1…
zeelrupapara Oct 5, 2024
ad6395d
Update ruff usage example in CONTRIBUTING.md (#11772)
ivnvxd Oct 5, 2024
fcf82a1
Implemented Exponential Search with binary search for improved perfor…
whyvineet Oct 5, 2024
3422ebc
feat: add testcase of polynom_for_points (#11811)
zeelrupapara Oct 7, 2024
cfd6d09
Added max_sum_bst.py (#11832)
1227haran Oct 7, 2024
dba8eec
added gronsfeld cipher implementation (#11835)
Lonercode Oct 7, 2024
2d671df
[pre-commit.ci] pre-commit autoupdate (#11874)
pre-commit-ci[bot] Oct 7, 2024
260e3d8
feat: add test cases in cipher's autokey (#11881)
zeelrupapara Oct 8, 2024
e9e7c96
Create GitHub Pages docs with Sphinx (#11888)
cclauss Oct 8, 2024
03a4251
[pre-commit.ci] pre-commit autoupdate (#12071)
pre-commit-ci[bot] Oct 14, 2024
6e24935
[pre-commit.ci] pre-commit autoupdate (#12234)
pre-commit-ci[bot] Oct 22, 2024
52602ea
[pre-commit.ci] pre-commit autoupdate (#12313)
pre-commit-ci[bot] Oct 28, 2024
a19bede
Add scripts/find_git_conflicts.sh (#12343)
cclauss Nov 1, 2024
3e9ca92
[pre-commit.ci] pre-commit autoupdate (#12349)
pre-commit-ci[bot] Nov 4, 2024
e3f3d66
[pre-commit.ci] pre-commit autoupdate (#12370)
pre-commit-ci[bot] Nov 11, 2024
e3bd772
`validate_filenames.py` Shebang `python` for Windows (#12371)
cclauss Nov 15, 2024
f3f32ae
[pre-commit.ci] pre-commit autoupdate (#12385)
pre-commit-ci[bot] Nov 18, 2024
fc33c50
[pre-commit.ci] pre-commit autoupdate (#12398)
pre-commit-ci[bot] Nov 25, 2024
c792122
Added matrix based color game algorithm (#12400)
Miranda13 Dec 2, 2024
b22fab0
[pre-commit.ci] pre-commit autoupdate (#12404)
pre-commit-ci[bot] Dec 2, 2024
0bcdfbd
Use Astral uv (#12402)
cclauss Dec 5, 2024
98391e3
[pre-commit.ci] pre-commit autoupdate (#12428)
pre-commit-ci[bot] Dec 12, 2024
f8e595e
[pre-commit.ci] pre-commit autoupdate (#12439)
pre-commit-ci[bot] Dec 16, 2024
4abfce2
Fix sphinx/build_docs warnings for audio_filters (#12449)
MaximSmolskiy Dec 23, 2024
47cd21a
Fix sphinx/build_docs warnings for cellular_automata (#12454)
MaximSmolskiy Dec 23, 2024
c5e603a
Fix sphinx/build_docs warnings for geodesy (#12462)
MaximSmolskiy Dec 23, 2024
b0cb13f
Fix sphinx/build_docs warnings for greedy_methods (#12463)
MaximSmolskiy Dec 23, 2024
04fbfd6
Fix sphinx/build_docs warnings for maths/volume (#12464)
MaximSmolskiy Dec 24, 2024
e9721aa
Fix sphinx/build_docs warnings for physics/horizontal_projectile_moti…
MaximSmolskiy Dec 24, 2024
c36aaf0
Fix sphinx/build_docs warnings for graphs/check_bipatrite (#12469)
MaximSmolskiy Dec 24, 2024
ae28fa7
Fix sphinx/build_docs warnings for data_structures/binary_tree/mirror…
MaximSmolskiy Dec 24, 2024
eb652cf
Bump astral-sh/setup-uv from 4 to 5 (#12445)
dependabot[bot] Dec 27, 2024
5bef6ac
Improve coverage special_numbers (#12414)
Scarfinos Dec 27, 2024
8bbe8ca
Improve test coverage for matrix exponentiation (#12388)
Scarfinos Dec 27, 2024
7647181
Improve test coverage for armstrong numbers (#12327)
Scarfinos Dec 27, 2024
2ae9534
Added test to linear regression (#12353)
Miranda13 Dec 27, 2024
1652d05
adding test to electronics/electric_power.py (#12387)
juliaaragao Dec 27, 2024
929b7dc
Fix Gaussian elimination pivoting (#11393)
MaximSmolskiy Dec 28, 2024
b5c8fbf
Add additional doctests, fix grammatical errors for maths/perfect_num…
joy-programs Dec 28, 2024
d496d56
Remove inaccessible URL in computer_vision/README.md (#12383)
setbit123 Dec 28, 2024
1909f22
adding doctests to maths/trapezoidal_rule.py (#12193)
MRJPEREZR Dec 28, 2024
2b58ab0
compare-method added to Vector class in lib.py (#12448)
Andrwaa Dec 28, 2024
2d68bb5
Fix split function to handle trailing delimiters correctly (#12423)
kishyassin Dec 29, 2024
972a5c1
fixed the issue in strings/join.py (#12434)
RajdeepBakolia2004 Dec 29, 2024
d9092d8
fixes requirements error (#12438)
sanks011 Dec 29, 2024
bfc804a
Fix sphinx/build_docs warnings for physics/newtons_second_law_of_moti…
MaximSmolskiy Dec 29, 2024
c932883
[pre-commit.ci] pre-commit autoupdate (#12466)
pre-commit-ci[bot] Dec 29, 2024
bfb0447
Fix sphinx/build_docs warnings for maths/zellers_congruence (#12481)
MaximSmolskiy Dec 29, 2024
ce036db
Fix sphinx/build_docs warnings for physics/speeds_of_gas_molecules (#…
MaximSmolskiy Dec 29, 2024
3622e94
Fix sphinx/build_docs warnings for other (#12482)
MaximSmolskiy Dec 29, 2024
94b3777
Fix sphinx/build_docs warnings for linear_algebra (#12483)
MaximSmolskiy Dec 29, 2024
f45e392
Fix sphinx/build_docs warnings for ciphers (#12485)
MaximSmolskiy Dec 30, 2024
68b4c6b
fix is_ip_v4_address_valid.py (#12394)
mahditavasoli Dec 30, 2024
2ca96b7
current_stock_price test added (#12390)
MRJPEREZR Dec 30, 2024
24923ee
Add doctest to maths/numerical_analysis/intersection.py (#12148)
shikhar-sm Dec 30, 2024
da587d0
Added doctest to /maths/power_using_recursion.py (#11994)
Parthjhalani07 Dec 30, 2024
493a7c1
feat: add testcase of assemble_transformation (#11810)
zeelrupapara Dec 30, 2024
7fa9b4b
Fix sphinx/build_docs warnings for dynamic_programming (#12484)
MaximSmolskiy Dec 30, 2024
a2be5ad
Tests electronics/electric_conductivity.py #9943 (#12437)
juliaaragao Dec 30, 2024
f24ddba
Implemented doctests for geometry-related classes (#12368)
IsxImattI Dec 30, 2024
7742536
Intensity_based_Segmentation (#12491)
AtharvMalusare Dec 30, 2024
75c5c41
#9943 : Adding coverage test for basic_graphs.py (#12354)
Scarfinos Dec 30, 2024
7e55fb6
- Implemented `find_lanczos_eigenvectors` to approximate the largest …
jeffreyyancey Dec 30, 2024
8921b56
Adding tests to monotonic_array.py (#12073)
MelihMSahin Dec 30, 2024
5942059
add doctest for quick_sort_3_partition (#11779)
lorduke22 Dec 30, 2024
8767d1d
add some documentation for heap sort (#9949)
rodrigondec Dec 31, 2024
8439fa8
Added the algorithm to compute the time period of a simple pendulum (…
pluto-tofu Dec 31, 2024
a439902
chore: improve comments and add tests to trapezoidal rule (#11640)
jurichar Dec 31, 2024
91a22c2
Create digital differential analyzer_line.py (#10929)
nababuddin Dec 31, 2024
12b1023
[ADDED] Implementation of Geometric Mean. (#10421)
kmtGryffindor20 Dec 31, 2024
bae33ac
[pre-commit.ci] pre-commit autoupdate (#12507)
pre-commit-ci[bot] Jan 6, 2025
b653aee
Fix ruff (#12515)
MaximSmolskiy Jan 12, 2025
4c92de5
Fix dynamic_programming/longest_increasing_subsequence.py (#12517)
XenoBytesX Jan 12, 2025
787aa5d
doctest all_combinations.py (#12506)
Siddhant231xyz Jan 13, 2025
cfcc84e
Fix build (#12516)
MaximSmolskiy Jan 13, 2025
4fe50bc
[pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12…
pre-commit-ci[bot] Jan 13, 2025
f04d308
Create longest_increasing_subsequence_iterative.py (#12524)
XenoBytesX Jan 14, 2025
0040ad4
Add butterfly pattern implementation (#12493)
aydinomer00 Jan 14, 2025
533767f
Doomsday Algorithm: Fix leap year check (#12396)
minh-swinburne Jan 18, 2025
91ebea1
Sphinx runs on ubuntu 24.04 arm (#12530)
cclauss Jan 19, 2025
1f74db0
[pre-commit.ci] pre-commit autoupdate (#12536)
pre-commit-ci[bot] Jan 20, 2025
9fb51b4
Update docstrings in the functions definitions. (#11797)
ronaldngounou Jan 23, 2025
c666db3
Add Doc test bubble sort (#12070)
vijayalaxmi777 Jan 23, 2025
13e4d3e
Fix error in avl_tree del_node function (#11510)
Rosepetal2022 Jan 24, 2025
6c92c5a
[pre-commit.ci] pre-commit autoupdate (#12542)
pre-commit-ci[bot] Jan 27, 2025
e59d819
[pre-commit.ci] pre-commit autoupdate (#12554)
pre-commit-ci[bot] Feb 5, 2025
338cbaf
Improve power.py (#12567)
lighting9999 Feb 9, 2025
738253e
git mv data_structures/queue data_structures/queues (#12577)
pre-commit-ci[bot] Feb 14, 2025
a5aed92
fix: typo in data_structures/linked_list/from_sequence.py (#12584)
maximevtush Feb 20, 2025
183fa06
Fix n-queens problem (#12583)
infrablue1 Feb 22, 2025
114d428
[pre-commit.ci] pre-commit autoupdate (#12591)
pre-commit-ci[bot] Feb 24, 2025
f528ce3
Added dynamic_programming/range_sum_query.py (#12592)
XenoBytesX Feb 27, 2025
8826ad3
feat: Implement Principal Component Analysis (PCA) (#12596)
parikshit2111 Mar 2, 2025
fff34ed
[pre-commit.ci] pre-commit autoupdate (#12599)
pre-commit-ci[bot] Mar 3, 2025
a415a95
Add largest rectangle histogram (#12269)
ankana2113 Mar 8, 2025
4fbd350
Improved test coverage in decimal_to_fraction.py (#12608)
PaulAdutwum Mar 8, 2025
e3fb530
Improve decimal_to_fraction.py (#12611)
PaulAdutwum Mar 8, 2025
23eb174
[pre-commit.ci] pre-commit autoupdate (#12614)
pre-commit-ci[bot] Mar 11, 2025
7ce998b
Fix some RUF012 per file ignores (#11399)
MaximSmolskiy Mar 11, 2025
edf7c37
[pre-commit.ci] pre-commit autoupdate (#12623)
pre-commit-ci[bot] Mar 18, 2025
580273e
Improve prefix_sum.py (#12560)
pranjaykumar926 Mar 19, 2025
e3773db
[pre-commit.ci] pre-commit autoupdate (#12631)
pre-commit-ci[bot] Mar 24, 2025
74b540a
Genetic Algorithm: Fix bug in multi-threading (#12644)
Dang-Hoang-Tung Mar 29, 2025
f10a5cb
prefix_evaluation: Add alternative recursive implementation (#12646)
isidroas Mar 31, 2025
baab802
doubly linked list: add dataclass and typing (#12647)
isidroas Apr 1, 2025
0c8cf8e
Fix bug for data_structures/linked_list/doubly_linked_list_two.py (#1…
MaximSmolskiy Apr 2, 2025
5afe029
[pre-commit.ci] pre-commit autoupdate (#12661)
pre-commit-ci[bot] Apr 7, 2025
a4576dc
fix: correct typo "util" to "until" (#12653)
kimtth Apr 9, 2025
4ed6141
[pre-commit.ci] pre-commit autoupdate (#12671)
pre-commit-ci[bot] Apr 14, 2025
cc621f1
Add find_unique_number algorithm to bit manipulation (#12654)
parth-6945 Apr 14, 2025
d123cbc
Solution for the Euler Project Problem 122 (#12655)
mindaugl Apr 14, 2025
4282063
Add matrix inversion algorithm using NumPy (#12657)
NaitikDwivede Apr 14, 2025
c585cb1
Solution for the Euler Project problem 136 (#12658)
mindaugl Apr 17, 2025
a1aa631
Adding time and a half pay calculator algorithm to financial folder (…
konsoleSam Apr 17, 2025
9891d2b
[pre-commit.ci] pre-commit autoupdate (#12680)
pre-commit-ci[bot] Apr 21, 2025
11a61d1
Generic type hint in DDL (#12677)
isidroas Apr 21, 2025
29afed0
Bump astral-sh/setup-uv from 5 to 6 (#12683)
dependabot[bot] Apr 25, 2025
0a3a965
[pre-commit.ci] pre-commit autoupdate (#12692)
pre-commit-ci[bot] Apr 28, 2025
145879b
Add solution for the Euler project problem 164. (#12663)
mindaugl May 5, 2025
40f4c51
Add solution for the Euler problem 190 (#12664)
mindaugl May 5, 2025
7ed7f04
[pre-commit.ci] pre-commit autoupdate (#12708)
pre-commit-ci[bot] May 5, 2025
d9d56b1
Add solution for the Euler project problem 345 (#12666)
mindaugl May 6, 2025
b720f24
Add solution for the Euler project problem 95. (#12669)
mindaugl May 10, 2025
a728cc9
Added/Improved doctests for lowest_common_ancestor.py (#12673)
NidhaNureen May 10, 2025
59c3c8b
Add N Input AND Gate (#12717)
robohie May 10, 2025
47a44ab
Improve longest_common_substring.py (#12705)
Alfredoxrock May 10, 2025
1317655
Fix error messages for horizontal_projectile_motion.py (#12722)
robohie May 10, 2025
95fb181
Add escape velocity calculator using standard physics formula (#12721)
SajeevSenthil May 10, 2025
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
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://github.com/microsoft/vscode-dev-containers/blob/main/containers/python-3/README.md
ARG VARIANT=3.13-bookworm
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}
COPY requirements.txt /tmp/pip-tmp/
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
&& pipx install pre-commit ruff \
&& pre-commit install
1 change: 1 addition & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://code.visualstudio.com/docs/devcontainers/tutorial
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
// Update 'VARIANT' to pick a Python version: 3, 3.11, 3.10, 3.9, 3.8
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3.13-bookworm",
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
86 changes: 86 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# 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

# /backtracking/

# /bit_manipulation/

# /blockchain/

# /boolean_algebra/

# /cellular_automata/

# /ciphers/

# /compression/

# /computer_vision/

# /conversions/

# /data_structures/

# /digital_image_processing/

# /divide_and_conquer/

# /dynamic_programming/

# /file_transfer/

# /fuzzy_logic/

# /genetic_algorithm/

# /geodesy/

# /graphics/

# /graphs/

# /greedy_method/

# /hashes/

# /images/

# /linear_algebra/

# /machine_learning/

# /maths/

# /matrix/

# /networking_flow/

# /neural_network/

# /other/

# /project_euler/

# /quantum/

# /scheduling/

# /scripts/

# /searches/

# /sorts/

# /strings/

# /traversals/

/web_programming/ @cclauss
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Bug report
description: Create a bug report to help us address errors in the repository
labels: [bug]
body:
- type: markdown
attributes:
value: >
Before requesting please search [existing issues](https://github.com/TheAlgorithms/Python/labels/bug).
Usage questions such as "How do I...?" belong on the
[Discord](https://discord.gg/c7MnfGFGa6) and will be closed.

- type: input
attributes:
label: "Repository commit"
description: >
The commit hash for `TheAlgorithms/Python` repository. You can get this
by running the command `git rev-parse HEAD` locally.
placeholder: "a0b0f414ae134aa1772d33bb930e5a960f9979e8"
validations:
required: true

- type: input
attributes:
label: "Python version (python --version)"
placeholder: "Python 3.10.7"
validations:
required: true

- type: textarea
attributes:
label: "Dependencies version (pip freeze)"
description: >
This is the output of the command `pip freeze --all`. Note that the
actual output might be different as compared to the placeholder text.
placeholder: |
appnope==0.1.3
asttokens==2.0.8
backcall==0.2.0
...
validations:
required: true

- type: textarea
attributes:
label: "Expected behavior"
description: "Describe the behavior you expect. May include images or videos."
validations:
required: true

- type: textarea
attributes:
label: "Actual behavior"
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord community
url: https://discord.gg/c7MnfGFGa6
about: Have any questions or need any help? Please contact us via Discord
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Feature request
description: Suggest features, propose improvements, discuss new ideas.
labels: [enhancement]
body:
- type: markdown
attributes:
value: >
Before requesting please search [existing issues](https://github.com/TheAlgorithms/Python/labels/enhancement).
Do not create issues to implement new algorithms as these will be closed.
Usage questions such as "How do I...?" belong on the
[Discord](https://discord.gg/c7MnfGFGa6) and will be closed.

- type: textarea
attributes:
label: "Feature description"
description: >
This could include new topics or improving any existing implementations.
validations:
required: true
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Other
description: Use this for any other issues. PLEASE do not create blank issues
labels: ["awaiting triage"]
body:
- type: textarea
id: issuedescription
attributes:
label: What would you like to share?
description: Provide a clear and concise explanation of your issue.
validations:
required: true

- type: textarea
id: extrainfo
attributes:
label: Additional information
description: Is there anything else we should know about this issue?
validations:
required: false
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Keep GitHub Actions up to date with Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### Describe your change:



* [ ] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
* [ ] 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 include at least one URL that points to Wikipedia or another similar explanation.
* [ ] If this pull request resolves one or more open issues then the description above includes the issue number(s) with a [closing keyword](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue): "Fixes #ISSUE-NUMBER".
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/community)
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/community) or ping one of the
reviewers. Thank you for your contributions!
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "build"

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: uv.lock
- uses: actions/setup-python@v5
with:
python-version: 3.13
allow-prereleases: true
- run: uv sync --group=test
- name: Run tests
# TODO: #8818 Re-enable quantum tests
run: uv run pytest
--ignore=computer_vision/cnn_classification.py
--ignore=docs/conf.py
--ignore=dynamic_programming/k_means_clustering_tensorflow.py
--ignore=machine_learning/lstm/lstm_prediction.py
--ignore=neural_network/input_data.py
--ignore=project_euler/
--ignore=quantum/q_fourier_transform.py
--ignore=scripts/validate_solutions.py
--ignore=web_programming/fetch_anime_and_play.py
--cov-report=term-missing:skip-covered
--cov=. .
- if: ${{ success() }}
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
Loading