Meta Interview Question

Given a binary tree, return the sums of each path (root to leaf node) in an array

Interview Answer

Anonymous

Mar 8, 2020

DFS and a variable to sum all when reaches leaves