Interview Questions Flashcards

1
Q

In Order Traversal of Binary Tree

A
inOrder: function(node, f) {
  if (!node)
    return;
  this.inOrder(node.left, f);
  f(node);
  this.inOrder(node.right, f);
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly