Рет қаралды 5,198
In this video we are solving a popular Facebook interview question: Nested List Weight Sum (Leetcode # 339(.
This is a weird problem because we aren't given the data outright but rather given to us as part of a NestedList class that we need to interact with. Nothing crazy for the solution though, a standard BFS will solve this question beautifully.