Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missed a few, oops!
  • Loading branch information
StanFromIreland committed Aug 13, 2026
commit 5f215109a316472719399f50c50a2fb578347586
24 changes: 12 additions & 12 deletions Doc/library/time-complexity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,18 @@ the same costs.
- *O*\ (1)
* - Discard (``s.discard(x)``)
Comment thread
StanFromIreland marked this conversation as resolved.
Outdated
- *O*\ (1)
* - Union (``s | t``) [6]_
- *O*\ (len(*s*) + len(*t*))
* - Intersection (``s & t``, ``s.intersection(t)``) [6]_ [7]_
- *O*\ (min(len(*s*), len(*t*)))
* - Difference (``s - t``, ``s.difference(t)``) [6]_ [8]_
- *O*\ (len(*s*))
* - Difference update (``s.difference_update(t)``) [1]_ [6]_ [7]_
- *O*\ (min(len(*s*), len(*t*)))
* - Symmetric difference (``s ^ t``) [6]_
- *O*\ (len(*s*) + len(*t*))
* - Symmetric difference update (``s.symmetric_difference_update(t)``) [1]_ [6]_
- *O*\ (len(*t*))
* - Union (``s1 | s2``) [6]_
Comment thread
StanFromIreland marked this conversation as resolved.
Outdated
Comment thread
StanFromIreland marked this conversation as resolved.
Outdated
- *O*\ (len(*s1*) + len(*s2*))
* - Intersection (``s1 & s2``, ``s1.intersection(s2)``) [6]_ [7]_
Comment thread
StanFromIreland marked this conversation as resolved.
Outdated
- *O*\ (min(len(*s1*), len(*s2*)))
* - Difference (``s1 - s2``, ``s1.difference(s2)``) [6]_ [8]_
- *O*\ (len(*s1*))
* - Difference update (``s1.difference_update(s2)``) [1]_ [6]_ [7]_
- *O*\ (min(len(*s1*), len(*s2*)))
* - Symmetric difference (``s1 ^ s2``) [6]_
Comment thread
StanFromIreland marked this conversation as resolved.
Outdated
- *O*\ (len(*s1*) + len(*s2*))
* - Symmetric difference update (``s1.symmetric_difference_update(s2)``) [1]_ [6]_
- *O*\ (len(*s2*))
* - Get length (``len(s)``) [4]_
- *O*\ (1)

Comment thread
StanFromIreland marked this conversation as resolved.
Expand Down
Loading