We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab674f5 commit 4636fdaCopy full SHA for 4636fda
C++/closest-node-to-path-in-tree.cpp
@@ -1,5 +1,5 @@
1
// Time: O(n + q)
2
-// Space: O(n)
+// Space: O(n + q)
3
4
// Tarjan's Offline LCA Algorithm
5
class Solution {
0 commit comments