1 votes 1 votes Give an algorithm for finding the height or depth of the tree DS data-structures binary-tree + – Kaluti asked Mar 28, 2018 recategorized Jul 6, 2022 by Lakshman Bhaiya Kaluti 330 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 0 votes 0 votes height of binary tree abhishekmehta4u answered Mar 28, 2018 selected Mar 28, 2018 by Kaluti abhishekmehta4u comment Share Follow See all 2 Comments See all 2 2 Comments reply Kaluti commented Mar 28, 2018 reply Follow Share should not c be = max(Xl,XR) ONLY 0 votes 0 votes abhishekmehta4u commented Mar 28, 2018 reply Follow Share it should be c=1+max(xl,xr). you take an binary tree and execute this code then you will defnaitly got it 0 votes 0 votes Please log in or register to add a comment.