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

Google logo

Google

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Strategy
Meta logo

Meta

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Sense
Meta logo

Meta

Engineering Manager

Prepare for success with realistic, role-specific interview simulations.

System Design
Amazon logo

Amazon

Data Scientist

Prepare for success with realistic, role-specific interview simulations.

Behavioral

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..