GeeksforGeeks » Interview Questions

Binary tree of integer is given find a path in tree that's maximum

(1 post)
  • Started 1 year ago by ecpojdky
  1. Arif
    guest
    Posted 1 year ago #

    1) Path can be from root to leaf
    2) Path can be from root to non leaf nodes
    3) Path can be from non root node to leave node
    4) path can be from non root node to non leaf node
    5) one single node can also be a candidate

    6) no need to consider the path like this
    Max Sum path in Left tree + Max Sum path in Left tree + current Node
    where current node can be any node in the tree...

    Looking for time complexity space complexity


Reply

You must log in to post.

RSS feed for this topic