A Binary Tree implementation inJava with useful functions.
=============== Functions Included:
-
add/insert
-
inOrder
-
isBalanced
-
getHeight
-
checkHeight
-
findAncestor
-
hasPathSum
-
printPath
-
getParent
-
getDistance
-
getDFS
-
getDiff
-
printLeaves
-
getClosest
-
getNear
-
rightNeighbour
-
inOrderIterative
-
getBFS
-
isLeaf
-
boundry
-
maxSum
-
maxPathSum
-
transformTree
-
display/show
-
inVertical
-
inOrderSuccessor
-
arrayToTree
-
getList
-
spiralOrder
-
isCousin
-
isSubTree
-
preOrder
-
setSumChild
-
getMaximum
-
getLevel
-
getMinimum
-
isBST