Skip to content

fix: updated worst-case complexity of quick sort#148

Open
shah-zeb-naveed wants to merge 1 commit intoericdrowell:masterfrom
shah-zeb-naveed:patch-1
Open

fix: updated worst-case complexity of quick sort#148
shah-zeb-naveed wants to merge 1 commit intoericdrowell:masterfrom
shah-zeb-naveed:patch-1

Conversation

@shah-zeb-naveed
Copy link

you can actually have O(n) worst case if you have a sorted array and you keep on taking the last element as pivot.

you can actually have O(n) worst case if you have a sorted array and you keep on taking the last element as pivot.
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

Successfully merging this pull request may close these issues.

1 participant