TikTok Interview Question

return the biggest sum of a sub tree in a binary tree,

Interview Answer

Anonymous

Aug 24, 2025

using dfs to traverse the tree and update the max sum.