Home / GATE 2017-2018 / GATE CSE :: Discussion

Discussion :: GATE CSE

  1. The height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudo code below is invoked as height(root) to compute the height of a binary tree rooted at the tree pointer root.

    The appropriate expressions for the two boxes B1 and B2 are
  2. A.
    B1: (1+height(n →
    B.
    B1: (height(n →
    C.
    B1: height(n →
    D.
    B1: (1+ height(n →

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    -NA-


Be The First To Comment