Skip to content

Commit 17e3ba9

Browse files
committed
Runtime: 3 ms (Top 79.17%) | Memory: 11.7 MB (Top 92.01%)
1 parent f8a892d commit 17e3ba9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
// Runtime: 3 ms (Top 79.17%) | Memory: 11.7 MB (Top 92.01%)
12
class Solution {
23
public:
34
int fillCups(vector<int>& amount) {
4-
sort(amount.begin(),amount.end());
5+
sort(amount.begin(),amount.end());
56
int x=amount[0];
67
int y=amount[1];
78
int z=amount[2];
@@ -10,4 +11,4 @@ class Solution {
1011
if(x==0 && y==0) return z;
1112
else return z;
1213
}
13-
};
14+
};

0 commit comments

Comments
 (0)