Skip to content

Fix pivot choice in QuickSort #1

Description

@alisianoi

Currently, QuickSort contains a bug in choice of pivot and the tests do not pick it up. Fix tests and then fix code.

https://github.com/all3fox/algos-java/blob/f43165ff0a573e4197695a48ca934829fb9c8f27/src/main/java/io/github/all3fox/sort/QuickSort.java#L25

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions