Binary Tree
Tree Nodes
class TreeNode {
constructor(val) {
this.val = val;
this.left = null;
this.right = null;
}
}Tree Traversal
BFS
DFS
Pre-order
In-order
Post-order
Example of DFS using a adjacency list with itera
Last updated