Media Summary: This is surprisingly a very interesting question. The intuitive answer is to first calculate maxDepth in the first pass and then work ... In this video we are solving a popular Facebook interview question: LeetCode Python 364 Nested List Weight Sum II
Leetcode 364 Nested List Weight - Detailed Analysis & Overview
This is surprisingly a very interesting question. The intuitive answer is to first calculate maxDepth in the first pass and then work ... In this video we are solving a popular Facebook interview question: LeetCode Python 364 Nested List Weight Sum II