Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 21a49ab

Browse files
Update Readme.md
1 parent 9e39f4f commit 21a49ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Sorting/Quick Sort/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The idea is to break the the array into an non-overlapping set of elements (sub-
88

99
## Time Complexity
1010

11-
11+
One way to look at it that, we are partitioning the array into two parts each time, resulting into O(logn) partition steps ,in average case/best case and O(n) partition steps in worst case, when all the elements are on one side of randomly chosen pivot. We observe that each of these partition steps has O(n) elements to be sorted. Hence,
1212

1313
Best Case: O(nlogn)
1414

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /