Graph Theory Simplified This is the 7th post of my brand new series Graph Theory: Go Hero. We’re going to discuss about two basic tree algorithms here. These are the types of problems we encounter as warm - up problems in job interviews. Don’t forget to check out the older posts of this series by navigating to the above link. Problem 1 : leaf node sum What is the sum of all the leaf node values in a tree? For instance, we have to find the sum of leaf nodes in the given below tree.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile