Find the Max element in a Given Binary Tree

Objective: – Given a binary tree , Find the max element in it.


Find the Max element in a Given Binary TreeApproach:

  • Use Recursion.
  • Max will the Max(root, max element in left subtree, max element in rightsubtree)
  • Recursively solve for max element in left subtree and right subtree.



Max element in Binary Tree: 35

Top Companies Interview Questions..-


If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.

You may also like...

4 Responses

  1. mohan bera says:

    if we try to find min element with this process this is giving always 0. why?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: