algortithm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phanipep
    New Member
    • Dec 2007
    • 38

    #1

    algortithm

    what is binary search tree? Write an algorithm to create a binary search tree from an input list of integers.
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by phanipep
    what is binary search tree? Write an algorithm to create a binary search tree from an input list of integers.

    Binary search tree is the one in which a root node has a left and a right node and the value of right node is greater than root value which is greater than the left node value.

    Try to write your own code for a Binary tree and come back here if you are facing issues with the logic

    Raghuram

    Comment

    Working...