Skip to content

Commit 3f403d9

Browse files
authored
Update redundant-connection.cpp
1 parent da634d8 commit 3f403d9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

C++/redundant-connection.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,10 @@ class Solution {
3333
return false;
3434
}
3535
set_[min(x_root, y_root)] = max(x_root, y_root);
36-
--count_;
3736
return true;
3837
}
3938

40-
int length() const {
41-
return count_;
42-
}
43-
4439
private:
4540
vector<int> set_;
46-
int count_;
4741
};
4842
};

0 commit comments

Comments
 (0)