Difference between binary tree and binary search tree

后端 未结 12 1672
情深已故
情深已故 2020-11-29 14:44

Can anyone please explain the difference between binary tree and binary search tree with an example?

12条回答
  •  悲哀的现实
    2020-11-29 15:03

    In a Binary search tree, all the nodes are arranged in a specific order - nodes to the left of a root node have a smaller value than its root, and all the nodes to the right of a node have values greater than the value of the root.

提交回复
热议问题