File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ extension Collection {
7474### Complexity
7575
7676The existing partition is an O(_ n_ ) operations, where _ n_ is the length of the
77- range to be partitioned, while the stable partition is O(_ n log n _ ). Both
77+ range to be partitioned, while the stable partition is O(_ n _ log _ n _ ). Both
7878partitions have algorithms with improved performance for bidirectional
7979collections, so it would be ideal for those to be customization points were they
8080to eventually land in the standard library.
8181
8282` partitioningIndex(where:) ` is a slight generalization of a binary search, and
83- is an O(_ log n _ ) operation for random-access collections; O(_ n_ ) otherwise.
83+ is an O(log _ n _ ) operation for random-access collections; O(_ n_ ) otherwise.
8484
8585### Comparison with other languages
8686
You can’t perform that action at this time.
0 commit comments