Coding
Given a tree, write a function to return the sum of the max-sum path which goes through the root node.
Try Free AI Interview
Interview question asked to Data Scientists interviewing at Duolingo, Dell, Reddit and others: Given a tree, write a function to return the sum of the max-sum path which goes through the root node..