Skip to content

Commit 038c144

Browse files
Update algorithms/intervals/data_stream/README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 48b8618 commit 038c144

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

algorithms/intervals/data_stream/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Let k be the current number of disjoint intervals stored in the intervals map.
111111
- Get Intervals(): `O(k)`
112112
- We iterate over every stored interval once to build the output.
113113

114-
- Worst case relation to n: If there are n Add Num(int value) calls and nothing ever merges, then k=`O(n)`, giving
114+
- Worst-case relation to n: If there are n Add Num(int value) calls and nothing ever merges, then k=`O(n)`, giving
115115
Add Num(int value) `O(log(n))` and Get Intervals() `O(n)`.
116116

117117
### Space Complexity

0 commit comments

Comments
 (0)