Skip to content

Commit c0fe573

Browse files
committed
Runtime: 156 ms (Top 5.09%) | Memory: 13.4 MB (Top 68.16%)
1 parent b884809 commit c0fe573

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/M/Minimum Time Difference/Minimum Time Difference.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 156 ms (Top 5.09%) | Memory: 13.4 MB (Top 68.16%)
12
class Solution {
23
public:
34
int findMinDifference(vector<string>& timePoints) {
@@ -7,7 +8,7 @@ class Solution {
78
if(st.count(i)) return 0;
89
st.insert(i);
910
}
10-
int ans = INT_MAX;
11+
int ans = INT_MAX;
1112
int first = -1,prev = 0; // first variable will take the diffrence of the first time stamp given in the input and 00:00
1213
int hour = 0, minute = 0;
1314
while(hour<24)
@@ -36,4 +37,4 @@ class Solution {
3637
ans = min(first+prev,ans);
3738
return ans;
3839
}
39-
};
40+
};

0 commit comments

Comments
 (0)