Skip to content

Commit

Permalink
Complete docs for 'segments_intersections' function
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Apr 5, 2021
1 parent 99a2806 commit 6b080bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bentley_ottmann/planar.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def segments_intersections(segments: _Sequence[_Segment]
Based on Bentley-Ottmann algorithm.
Time complexity:
``O((len(segments) + len(intersections)) * log len(segments))``
``O(len(segments) * log len(segments) + len(intersections))``
Memory complexity:
``O(len(segments) + len(intersections))``
Reference:
Expand Down

0 comments on commit 6b080bd

Please sign in to comment.