Unitalicize "log" in big O notation (#17)

This commit is contained in:
Austin Conlon authored and GitHub committed 2020-10-12 09:37:07 -05:00
1 parent c67dd3419c
commit 3782207b2c
1 file changed
+2 -2
+2 -2
View File
@@ -74,13 +74,13 @@ extension Collection {
### Complexity
The existing partition is an O(_n_) operations, where _n_ is the length of the
range to be partitioned, while the stable partition is O(_n log n_). Both
range to be partitioned, while the stable partition is O(_n_ log _n_). Both
partitions have algorithms with improved performance for bidirectional
collections, so it would be ideal for those to be customization points were they
to eventually land in the standard library.
`partitioningIndex(where:)` is a slight generalization of a binary search, and
is an O(_log n_) operation for random-access collections; O(_n_) otherwise.
is an O(log _n_) operation for random-access collections; O(_n_) otherwise.
### Comparison with other languages