Depth First Search - Pre Order
Traverse a tree in depth first search - pre order. Pass the root of the tree.
Usage
src/sample/preorder.ts
import { preOrder } from 'athro';
const result = preOrder(root);
Traverse a tree in depth first search - pre order. Pass the root of the tree.
import { preOrder } from 'athro';
const result = preOrder(root);