We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841affd commit 453ca29Copy full SHA for 453ca29
C++/graph-valid-tree.cpp
@@ -1,5 +1,5 @@
1
// Time: O(|V| + |E|)
2
-// Space: O(|V|)
+// Space: O(|V| + |E|)
3
4
class Solution {
5
public:
0 commit comments