Skip to content

Commit d360dc0

Browse files
authored
Update third-maximum-number.cpp
1 parent d5767ba commit d360dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/third-maximum-number.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Solution {
55
public:
66
int thirdMax(vector<int>& nums) {
77
int count = 0;
8-
vector<int> top(3, numeric_limits<int>::min());
8+
vector<int64_t> top(3, numeric_limits<int64_t>::min());
99

1010
for (const auto& num : nums) {
1111
if (num > top[0]) {

0 commit comments

Comments
 (0)