File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
two-sum-iv-input-is-a-bst Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,10 @@ https://leetcode.cn/problems/increasing-order-search-tree/
620
620
621
621
https://leetcode.cn/problems/two-sum-ii-input-array-is-sorted/
622
622
623
+ https://leetcode.cn/problems/two-sum-iv-input-is-a-bst
624
+
625
+ https://leetcode.cn/problems/opLdQZ
626
+
623
627
#### 安装教程
624
628
625
629
1 . 安装` deno `
Original file line number Diff line number Diff line change
1
+ export { default } from "../two-sum-iv-input-is-a-bst/index.ts" ;
Original file line number Diff line number Diff line change
1
+ import inorderTraversal from "../binary-tree-inorder-traversal/index.ts" ;
2
+ import { TreeNode } from "../binary-tree-inorder-traversal/TreeNode.ts" ;
3
+ import twoSum from "../two-sum-ii-input-array-is-sorted/index.ts" ;
4
+
5
+ export default function findTarget ( root : TreeNode | null , k : number ) : boolean {
6
+ const list = inorderTraversal ( root ) ;
7
+ return twoSum ( list , k ) [ 0 ] >= 1 ;
8
+ }
You can’t perform that action at this time.
0 commit comments