Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kaitenague/algorithms-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: TheAlgorithms/Python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 11 files changed
  • 10 contributors

Commits on May 21, 2025

  1. Add median() function using Quickselect (TheAlgorithms#12676)

    * Add median() function using Quickselect
    
    * Update quick_select.py
    
    * Update quick_select.py
    
    * Update quick_select.py
    
    ---------
    
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    isidroas and MaximSmolskiy authored May 21, 2025
    Configuration menu
    Copy the full SHA
    26ad689 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2025

  1. Add bidirectional search algorithm implementation (TheAlgorithms#12649)

    * Add bidirectional search algorithm implementation
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fix style and linting issues in bidirectional search
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Add doctest for main function
    
    * Add doctest for main function
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * fixed deprications
    
    * fixed deprications
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * removed unused import
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update bidirectional_search.py
    
    * Update bidirectional_search.py
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update bidirectional_search.py
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    3 people authored May 22, 2025
    Configuration menu
    Copy the full SHA
    ca445f5 View commit details
    Browse the repository at this point in the history
  2. Improve hash map (TheAlgorithms#12678)

    * Mutable _Item
    
    * document falsy item
    
    * resize_down: expected test result
    
    * resize_down: actual result
    
    This is a problem since it causes rapid cycling
    
    * improve comment about falsy item
    
    Co-authored-by: Andrey <Cjkjvfnby@gmail.com>
    
    * fix long line
    
    * Update hash_map.py
    
    * Update hash_map.py
    
    ---------
    
    Co-authored-by: Andrey <Cjkjvfnby@gmail.com>
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    3 people authored May 22, 2025
    Configuration menu
    Copy the full SHA
    c81cc26 View commit details
    Browse the repository at this point in the history
  3. Add tests and cleanup sum_of_subsets algorithm (TheAlgorithms#12746)

    * Add tests and cleanup sum_of_subsets algorithm.
    
    * Update sum_of_subsets.py
    
    * Update sum_of_subsets.py
    
    * Update sum_of_subsets.py
    
    * Update sum_of_subsets.py
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored May 22, 2025
    Configuration menu
    Copy the full SHA
    e1115b5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a8ad2db View commit details
    Browse the repository at this point in the history

Commits on May 26, 2025

  1. [pre-commit.ci] pre-commit autoupdate (TheAlgorithms#12760)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.11.9 → v0.11.11](astral-sh/ruff-pre-commit@v0.11.9...v0.11.11)
    - [github.com/tox-dev/pyproject-fmt: v2.5.1 → v2.6.0](tox-dev/pyproject-fmt@v2.5.1...v2.6.0)
    
    * updating DIRECTORY.md
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: pre-commit-ci[bot] <pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] and pre-commit-ci[bot] authored May 26, 2025
    Configuration menu
    Copy the full SHA
    e26c388 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2025

  1. maths/radix2_fft.py: Fix calculation for Python 3.14 (TheAlgorithms#1…

    …2772)
    
    * maths/radix2_fft.py: Fix calculation for Python 3.14
    
    As suggested at:
    * TheAlgorithms#12729 (comment)
    * TheAlgorithms#12710 (comment)
    
    @MaximSmolskiy @KirilBangachev @skirpichev Careful review, please.  I am just implementing the suggestion, but I do not have any expertise in this area.
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Change test results
    
    * GitHub Actions: Rename job from build to directory_writer
    
    It is confusing to have two jobs named `build`.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    cclauss and pre-commit-ci[bot] authored May 29, 2025
    Configuration menu
    Copy the full SHA
    d0d7f0b View commit details
    Browse the repository at this point in the history

Commits on May 31, 2025

  1. feat: create straight_line_depreciation (TheAlgorithms#12377)

    Co-authored-by: Jeonghyun Min <20122791@tafe.wa.edu.au>
    kangaroo-eating-carrots and Jeonghyun Min authored May 31, 2025
    Configuration menu
    Copy the full SHA
    4b077c0 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Add doctests for the boyer_moore_search algorithm. (TheAlgorithms#12769)

    * Add doctests for the boyer_moore_search algorithm.
    
    * Update boyer_moore_search.py
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update boyer_moore_search.py
    
    * Update boyer_moore_search.py
    
    ---------
    
    Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    c3d4b9e View commit details
    Browse the repository at this point in the history
Loading