Skip to content

Commit 79c7187

Browse files
committed
Runtime: 35 ms (Top 53.02%) | Memory: 13.1 MB (Top 84.47%)
1 parent 4f09aac commit 79c7187

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/E/Exclusive Time of Functions/Exclusive Time of Functions.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 35 ms (Top 53.02%) | Memory: 13.1 MB (Top 84.47%)
12
class Solution {
23
public:
34
vector<int> exclusiveTime(int n, vector<string>& logs) {
@@ -13,10 +14,10 @@ class Solution {
1314
auto diff = time - st.top().second + 1;
1415
ret[st.top().first] += diff;
1516
st.pop();
16-
if (!st.empty())
17+
if (!st.empty())
1718
ret[st.top().first] -= diff;
1819
}
1920
}
2021
return ret;
2122
}
22-
};
23+
};

0 commit comments

Comments
 (0)