Sollicitatievraag bij Tinkoff Credit Systems Bank

Tree traversing and a dynamic programming question