Skip to content
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

Partition function has extremely bad performance for array with identical values #72

Open
auntyellow opened this issue Jan 2, 2020 · 0 comments

Comments

@auntyellow
Copy link

auntyellow commented Jan 2, 2020

Implemented QuickSort by this Partition in this book, given a large array with identical values, we get either a performance of O(n^2), or StackOverflow.

@auntyellow auntyellow changed the title Partition function has extremely bad performance for array with same value Partition function has extremely bad performance for array with identical values Jan 2, 2020
auntyellow added a commit to auntyellow/CodingInterviewChinese2 that referenced this issue Jan 2, 2020
auntyellow added a commit to auntyellow/CodingInterviewChinese2 that referenced this issue Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant