Domanda di colloquio di NVIDIA

A leetcode hard type question involving trees with dynamic programming and memoization