Skip to content

Commit 0e3e300

Browse files
authored
Update closest-node-to-path-in-tree.py
1 parent 1e34642 commit 0e3e300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/closest-node-to-path-in-tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def closestNode(self, n, edges, query):
231231
return [max((tree_infos.lca(x, y) for x, y in ((start, end), (start, node), (end, node))), key=lambda x: tree_infos.D[x]) for start, end, node in query]
232232

233233

234-
# Time: O(n^2 + q * l)
234+
# Time: O(n^2 + q * n)
235235
# Space: O(n^2)
236236
# bfs
237237
class Solution4(object):

0 commit comments

Comments
 (0)