Skip to content

Commit 15a3223

Browse files
committed
Runtime: 308 ms (Top 28.18%) | Memory: 57.4 MB (Top 84.43%)
1 parent 670bd55 commit 15a3223

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/algorithms/L/Largest Combination With Bitwise AND Greater Than Zero/Largest Combination With Bitwise AND Greater Than Zero.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 308 ms (Top 28.18%) | Memory: 57.4 MB (Top 84.43%)
12
class Solution {
23
public:
34
int largestCombination(vector<int>& candidates) {
@@ -11,10 +12,10 @@ class Solution {
1112
}
1213
}
1314
int ans = 0;
14-
for(int i = 0; i < 32; i++){
15+
for(int i = 0; i < 32; i++){
1516
//cout<<bits[i]<<" ";
16-
ans = max(ans, bits[i]);
17+
ans = max(ans, bits[i]);
1718
}
18-
return ans;
19+
return ans;
1920
}
20-
};
21+
};

0 commit comments

Comments
 (0)