Skip to content

Commit 52c662c

Browse files
authored
Update ClosestBinarySearchTreeValueII.swift
1 parent d9b6267 commit 52c662c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Search/ClosestBinarySearchTreeValueII.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Question Link: Question Link: https://leetcode.com/problems/closest-binary-search-tree-value-ii/
3-
* Primary idea: Inorder traverse, compare current node val with the first one of the * array, as it is far from closest one as usual.
3+
* Primary idea: Inorder traverse, compare current node val with the first one of the
4+
* array, as it is far from closest one as usual.
45
* Time Complexity: O(n), Space Complexity: O(n)
56
*
67
* Definition for a binary tree node.
@@ -41,4 +42,4 @@ class ClosestBinarySearchTreeValueII {
4142
}
4243
inorder(node.right, target, k, &res)
4344
}
44-
}
45+
}

0 commit comments

Comments
 (0)