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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
import { TreeNode } from "./TreeNode.ts";
export function inorder(root: TreeNode | null, output: (a: number) => void) { if (!root) return; inorder(root.left, output); output(root.val); inorder(root.right, output);}
masx200_leetcode_test

Version Info

Tagged at
a year ago