Pergunta de entrevista da empresa Cadence Design Systems

Write a dynamic algorithm to find the height of a tree