deno.land / x / masx200_leetcode_test@10.6.5 / validate-binary-search-tree / inorder.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { TreeNode } from "../binary-tree-inorder-traversal/TreeNode.ts";import { Signal } from "./index.ts";
export function inorder( root: TreeNode | null, output: (a: number) => void, signal?: Signal,) { if (signal?.aborted) return; if (!root) return; inorder(root.left, output, signal); if (signal?.aborted) return; output(root.val); inorder(root.right, output, signal);}
masx200_leetcode_test

Version Info

Tagged at
a year ago