With the help of a numerical example explain the Depth First Traversal of a tree

Depth traversal of a tree systematically visits all of its child nodes before visiting  any siblings. In case of binary trees, we perform pre-order, in-order or post-order traversal as depth first traversal techniques. Talking about general trees, follow ...

Read More

Tagged As: , , , , , , ,

Delete the node with value 12 in following binary search tree

  ...

Read More

Tagged As: , , ,

  • "An expert is a man who has made all the mistakes which can be made, in a narrow field." - Niels Bohr (1885-1962)
  • "Good teachers are those who know how little they know. Bad teachers are those who think they know more than they don't know." -- R. Verdi
  • "The main part of intellectual education is not the acquisition of facts but learning how to make facts live." -- Oliver Wendell Holmes