DEV Community

loading...

Tree traversal [Inorder]

ann lin
I am a spider, I build web.
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 (0)