Data Structures

1: Consider the following nested representation of binary trees indicates y and z are the left right subtrees, respectively, of node x. Note that y and z may be NULL or further nested. Which of the following represents a valid binary tree ?
A. (1 2(4 5 6 7))
B. 1((2 3 NULL)4 5 6)7)
C. (1(234)(567)
D. (1(2 3 NULL)(4 5))
 

Answer : C

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.