DEV Community

loading...

Tree traversal [Inorder]

annlin profile image ann lin Updated on ・1 min read

Tree is in order. Traverse down the tree to get sorted values using inorder traversal. Inorder traversal is useful to determine if a tree is a binary search tree. Code is in python. Done through recursion.

Discussion

pic
Editor guide