You are viewing a single comment's thread. Return to all comments →
PYTHON 2 IMPLEMENTATION
def topView(root): top_view(root,0) def top_view(root,count): if root: if count<=0: top_view(root.left,count-1) print root.data, if count>=0: top_view(root.right,count+1)
Seems like cookies are disabled on this browser, please enable them to open this website
Tree : Top View
You are viewing a single comment's thread. Return to all comments →
PYTHON 2 IMPLEMENTATION