@all why you wants to change the tree structure do you know they don't allow that otherwise it wont be amazon question
we can use Array as data Structure vertical sum in that as what jalaj told in case you wants to see working code check out \ http://shashank7s.blogspot.com/2011/02/wap-to-findout-vrtical-sum-of-nodes.html Let me know if still have any issue with problem Thanks & Regards Shashank Mani >>"The Best Way to Escape From The Problem is Solve It" -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.