text: Assume that inorder traversal of following tree is given 40 / \ 10 30 / \ 5 28
code: int inorder [ ] = { 5 , 10 , 40 , 30 , 28 } ; int len = sizeof ( inorder ) / sizeof ( inorder [ 0 ] ) ; struct node * root = buildTree ( inorder , 0 , len - 1 ) ;