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: AlgorithmAndLeetCode/TheAlgorithms_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.
  • 1 commit
  • 1 file changed
  • 4 contributors

Commits on Aug 30, 2026

  1. Add type hints to pancake_sort function (TheAlgorithms#14745)

    * Add type hints to pancake_sort function
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Use modern list[int] type hint instead of deprecated typing.List
    
    * Update pancake_sort to use Sequence and TypeVar
    
    Refactor pancake_sort function to accept any sequence type.
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Make pancake_sort generic with type parameter T
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: changsheng <changsheng0804-blip@users.noreply.github.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    4 people authored Aug 30, 2026
    Configuration menu
    Copy the full SHA
    310bb4c View commit details
    Browse the repository at this point in the history
Loading