Skip to content

Commit e40ae5b

Browse files
committed
Runtime: 589 ms (Top 5.65%) | Memory: 38.9 MB (Top 42.57%)
1 parent 604ff84 commit e40ae5b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/algorithms/M/My Calendar II/My Calendar II.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
// Runtime: 589 ms (Top 5.65%) | Memory: 38.9 MB (Top 42.57%)
12
class MyCalendarTwo {
23
public:
34
map<int,int>mpp;
45
MyCalendarTwo() {
5-
6+
67
}
7-
8+
89
bool book(int start, int end) {
910
mpp[start]++;
1011
mpp[end]--;
@@ -19,4 +20,4 @@ class MyCalendarTwo {
1920
}
2021
return true;
2122
}
22-
};
23+
};

0 commit comments

Comments
 (0)