Domanda di colloquio di TikTok

Tree search and traversing problems , knapsack sometimes too