Coding
Given a tree, write a function to return the sum of the max-sum path which goes through the root node.
Data Scientist
Meta
Paytm
LendingClub
Dell
eToro
Try Our AI Interviewer
Prepare for success with realistic, role-specific interview simulations.
Try AI Interview NowInterview 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..