Pergunta de entrevista da empresa TikTok

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

Resposta da entrevista

Sigiloso

24 de ago. de 2025

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