Binary Tree Nodes

  • + 0 comments

    Select N, Case when P is null then 'Root' when N in (Select P from BST) then 'Inner' else 'Leaf' end from BST order by N