aboutsummaryrefslogtreecommitdiff
path: root/data_stream_disjoint_interval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'data_stream_disjoint_interval.cpp')
-rw-r--r--data_stream_disjoint_interval.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/data_stream_disjoint_interval.cpp b/data_stream_disjoint_interval.cpp
index 7abbdeb..3682ee2 100644
--- a/data_stream_disjoint_interval.cpp
+++ b/data_stream_disjoint_interval.cpp
@@ -26,8 +26,8 @@ public:
m[mn] = mx;
m[mx] = mn;
}
- vvd(int) getIntervals() {
- vvd(int) ans;
+ vvd getIntervals() {
+ vvd ans;
auto it = m.begin();
while (it != m.end()) {
ans.push_back({it->first, it->second});
@@ -41,5 +41,5 @@ int main() {
SummaryRanges *obj = new SummaryRanges();
int value;
obj->addNum(value);
- vvd(int) param_2 = obj->getIntervals();
+ vvd param_2 = obj->getIntervals();
}