We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b8618 commit 038c144Copy full SHA for 038c144
1 file changed
algorithms/intervals/data_stream/README.md
@@ -111,7 +111,7 @@ Let k be the current number of disjoint intervals stored in the intervals map.
111
- Get Intervals(): `O(k)`
112
- We iterate over every stored interval once to build the output.
113
114
-- Worst case relation to n: If there are n Add Num(int value) calls and nothing ever merges, then k=`O(n)`, giving
+- Worst-case relation to n: If there are n Add Num(int value) calls and nothing ever merges, then k=`O(n)`, giving
115
Add Num(int value) `O(log(n))` and Get Intervals() `O(n)`.
116
117
### Space Complexity
0 commit comments